ArjanKranenburg / virtual-devices

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

Request: Weather Station #97

Closed k4mrat closed 4 years ago

k4mrat commented 5 years ago

Maybe this is possible and I’ve just missed it, but: Would it be possible to make a Virtual Weather Station with multiple inputs for Temp, humidity, wind etc? I gather data from a lot of different points, but can’t figure out how to add them all to one page/device.

ArjanKranenburg commented 4 years ago

Did you try to use class 'sensor'. Then you can add various of the mentioned capabilities. See also: https://arjankranenburg.github.io/virtual-devices/sensor

k4mrat commented 4 years ago

Sorry for answering late, totally missed that you had answered until you closed the issue.

I'm talking about adding multiple of the same input, like for example Fibaros Universal Sensor would have with multiple Dallas Sensors attached. i've achieved this somewhat by adding sub-capabilities when messing around in your code.

like "measure_temperature.sensor1", "measure_temperature.sensor2" etc.

I have a separate version of the VD running this as an experiment. Never got it to look pretty, but it worked for me so I haven't pursued the issue any more. I think i did add you to the private repository way back if you feel like taking a look, but as far as i'm concerned i'm happy with having the ugly hack side by side with the real app. image1

ArjanKranenburg commented 4 years ago

I'm glad you did make your own changes. I encourage that. Often it is easier to make a tailored adaptation than a generic solution. Also in this case I can imagine adding Custom Capabilities is easier.

I tried to look at your changes, but could not find them. Did you push your changes to GitHub? Otherwise which files were changed?