ArjanKranenburg / virtual-devices

Homey-app to add Virtual Devices that can trigger your flows.
Other
25 stars 17 forks source link

New capability "district heating" #141

Open jeroendew opened 3 years ago

jeroendew commented 3 years ago

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?:

Best regards, Jeroen

Allram commented 3 years ago

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: https://github.com/ArjanKranenburg/virtual-devices/pull/139

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

jeroendew commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

I must be doing something wrong,

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 commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

jeroendew commented 3 years ago

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 commented 3 years ago

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

Allram commented 3 years ago

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

jeroendew commented 3 years ago

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 commented 3 years ago

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 commented 3 years ago

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

Phone's screen are too small for that haha

Allram commented 3 years ago

Fixed now :)

jeroendew commented 3 years ago

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