Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

New capability "district heating" #141

Open
jeroendew opened this issue Mar 23, 2021 · 17 comments
Open

New capability "district heating" #141

jeroendew opened this issue Mar 23, 2021 · 17 comments

Comments

@jeroendew
Copy link

jeroendew commented Mar 23, 2021

Hello,

In my house we do not have a standard hot water boiler for heating, but we are having a so called "district heating"
Since today I'm finally capable to fetch the data via IR -> MQTT -> Homey. Now I want to publish this data to a virtual device but I'm missing some options because the heating is measured different.

Is it possible to add these to it?:

  • Energy - GigaJoule (GJ) eg 11.001, with 3 decimals
  • Temp in - Celsius
  • Temp out - Celsius
  • Water Flow - liter per hour (l/h)

Best regards,
Jeroen

@Allram
Copy link
Contributor

Allram commented Mar 23, 2021

You can use measure_water to get liter/hour, that is under sensors when you add a device.
To be able to have more than 1 temperature sensor, you need to wait until my PR get's merged (if it will) or install my fork: #139

Energy - GJ need to be added as a custom capability. I can add it to my Fork tonight if you want that.

@jeroendew
Copy link
Author

Hi Allram,

If you would like to add the GJ as a capability that would be awesome, it's important that it has 3 decimals digits.

Many Thanks :-),
Jeroen

@Allram
Copy link
Contributor

Allram commented Mar 25, 2021

Added GigaJoule as a custom capability on my fork now (it's on the master branch).

Add is as a Sensor, it should be with 3 decimals and you can change the value with 'measure_energy' tag in a flow.

https://github.com/Allram/virtual-devices

@jeroendew
Copy link
Author

Hi Allram,

I've installed the master branch, add the sensor. But i'm receiving the error_invalid step.
Sensor : measure_energy
Text : Tag flow

@Allram
Copy link
Contributor

Allram commented Mar 26, 2021

It was because i forgot to change the step value of the capability (only in increments of 1).
Now it supports increments of 0.001 :)

Try to install from my master branch now, and it should work.

@jeroendew
Copy link
Author

I must be doing something wrong,

  • i've installed your branch.
  • added new sensor | energy (GJ)
  • create new flow with measure_energy - TAG
  • Test, error_invalid step
  • tried instead of TAG just a number 1.111, doesn't work

When install the app i did receive this message:
✓ Pre-processing app...
✓ Validating app...
Warning: flow.conditions[multi_mode_is].titleFormatted is missing. Specifying a Flow card's formatted title will be required in the future.
Warning: flow.actions[set_sensor_value].titleFormatted is missing. Specifying a Flow card's formatted title will be required in the future.
Warning: flow.actions[multi_set_state].titleFormatted is missing. Specifying a Flow card's formatted title will be required in the future.
Warning: brandColor is missing. Specifying the brand's color will be required in the future.
✓ Homey App validated successfully against level debug
✓ Packing Homey App...
✓ Pruning dev dependencies...
— App size: 717.5 KB
✓ Installing Homey App on Homey (https://192-168.homey.homeylocal.com)...
✓ Homey App com.arjankranenburg.virtual successfully installed

@Allram
Copy link
Contributor

Allram commented Mar 26, 2021

Try the master branch now.

I removed the step values from the capability, and now it seems to work from my phone atleast :)

The errormessages that you get about titleFormatted is expected.

@jeroendew
Copy link
Author

Yes now it's working, thank you :-)
Is it correct that i cannot add a second temperature as a sensor? Because i'm not seeing it.

@Allram
Copy link
Contributor

Allram commented Mar 26, 2021

On the add a sensor page, you should be able to add temperature sensor, temperature sensor2 and temperature sensor3 🤔

@jeroendew
Copy link
Author

jeroendew commented Mar 26, 2021

Hmm, it's not there. When i add a thermostat i see temp1/2/3 but not in the sensor list.
I've check the page drivers\virtual_switch\pair\capabilities.js
At rule 140 i'm only seeing "measure_temperature". For testing i've added "measure_temperature2" to it and installed it, now the "measure_temperature2" is showing in sensor and installing. But it cannot handel 2 decimals :-( and it had a strange dutch name ""Radon korte tijd"

I checked the app.json the file DE and NL translations are probably not adjusted I think.

@Allram
Copy link
Contributor

Allram commented Mar 26, 2021

Sorry, my fault. Only added the extra temperaturen sensors for the Thermostat device. Will add them to Sensors later today 👍

@Allram
Copy link
Contributor

Allram commented Mar 26, 2021

Should be working now. Added the 2 extra temperature sensors in the sensors device.

@jeroendew
Copy link
Author

Almost, I can now select the 2 extra temperatures but it cannot handle decimals only round values.
And temperature2 isn't named Temperatuur 2, but "Radon korte tijd"

@Allram
Copy link
Contributor

Allram commented Mar 26, 2021

Now it should be correct.
I added 2 decimals for temperature 2 & temperature 3. They are usable from 0 to +40*C. Do you need a wider range of temperature?

That's what i get for trying to do it with my phone and in a hurry :)

@jeroendew
Copy link
Author

If you could make the range to +90*C.

Phone's screen are too small for that haha

@Allram
Copy link
Contributor

Allram commented Mar 27, 2021

Fixed now :)

@jeroendew
Copy link
Author

Yes it's working now :-D, thank you :-)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants