Coder Social home page Coder Social logo

Huge Feature Request: New Dropdown Menu in your node to prepare Output for different Backends about node-red-contrib-virtual-smart-home HOT 4 CLOSED

csuermann avatar csuermann commented on May 28, 2024
Huge Feature Request: New Dropdown Menu in your node to prepare Output for different Backends

from node-red-contrib-virtual-smart-home.

Comments (4)

csuermann avatar csuermann commented on May 28, 2024

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.

steff75 avatar steff75 commented on May 28, 2024

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.

nicedevil007 avatar nicedevil007 commented on May 28, 2024

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.

csuermann avatar csuermann commented on May 28, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.