Comments (4)
Just to make sure I understand this request: The output of the VSH node would then be formatted / decorated in accordance to what target system was selected, e.g. zigbee2mqtt, but the general behavior of the VSH node would not change at all, correct?
Can you share your helper function-nodes that currently do the trick for you?
from node-red-contrib-virtual-smart-home.
Hi. Since nicedevil007 has not yet answered, attached my helper subflow to convert the output for deCONZ. For me it does what it should, although there is certainly much that can be optimized and extended.
deconz-helper-subflow.zip
from node-red-contrib-virtual-smart-home.
Oh thank you for reminding me... just forgot about my own created issue O_O
zigbee2mqtt wants commands like this:
payload: {
brightness: 255,
color: {hex: #FF0000},
color_temp: 150,
state: "on"},
topic}
brigtness
must be a value between 0
and 255
color
would be the easiest way to send a hex value
color_temp
is a value between 150
and 500
where 150
is coldest white and 500
is warmest white.
state
should be on
or off
but can also be ON
or OFF
there is one more possible variable but I guess the transition time won't make sense to send this by voice command. I think there is no usecase for this.
from node-red-contrib-virtual-smart-home.
I thought about custom converters some more and for now decided against implementing this as part of VSH. I believe converting logic could easily be put in a function node that gets placed behind the vsh-device node. Those function nodes could even be shared with the Node-RED community.
from node-red-contrib-virtual-smart-home.
Related Issues (20)
- Thermostat set temperature response HOT 2
- Moving my node red iobroker flows over to another PC - not working anymore? Metadata field red? HOT 2
- [BUG] Device is not responding. Please check network and power supply. HOT 1
- how to disable the message rate limiter HOT 2
- Alexa stopped recognizing my VSH nodes HOT 4
- [BUG] Timeout issue HOT 27
- Pro Version HOT 1
- installation failed HOT 16
- Cant install node red extension HOT 2
- Disconnected periodically retrying HOT 8
- Can't upgrade to 4.X version HOT 16
- Migrating flows to other Node-RED instance invalidates FREE plan HOT 2
- Alexa says device "isn't responding" for all devices HOT 5
- Add Fan Speed to Thermostat Device HOT 18
- Setting High or Low Setpoint on Dual Thermostat HOT 2
- Disconected Reconnecting HOT 6
- Cannot add new nodes even as Pro user HOT 5
- Add Device Name of Alexa device acting on request HOT 2
- Reporting msg.payload.device HOT 1
- Make node setting case insensitive HOT 3
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from node-red-contrib-virtual-smart-home.