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

Feature Request: State Node with custom "Device" field #142

Open
scobby opened this issue Feb 22, 2021 · 2 comments
Open

Feature Request: State Node with custom "Device" field #142

scobby opened this issue Feb 22, 2021 · 2 comments

Comments

@scobby
Copy link

scobby commented Feb 22, 2021

Problem:
When changing devices via alexa, alexa app dont have the correct state.

Possible solutions:

  • Response Node:
    Is it possible to update the state of the device via the response node? i only saw the possiblilty to send the acknoledge

  • state node:
    State node with possibility to get the device via parameter from flow, currently have to create a seperate node for every device.

@bricodx
Copy link

bricodx commented Aug 23, 2021

hello

it works perfectly with "state node".
for a socket or a lamp, here is an example :
[ { "id": "a01b03153d8e0a25", "type": "tab", "label": "Flow 1", "disabled": false, "info": "" }, { "id": "9ca99f58f2ddf896", "type": "mqtt in", "z": "a01b03153d8e0a25", "name": "Lect prise grenier", "topic": "stat/prise/POWER", "qos": "0", "datatype": "auto", "broker": "", "nl": false, "rap": false, "x": 270, "y": 140, "wires": [ [ "4135d8a69d68adfa", "3f7aef351709cc39" ] ] }, { "id": "823792710898b495", "type": "mqtt out", "z": "a01b03153d8e0a25", "name": "Envoie vers prise-grenier", "topic": "cmnd/prise/POWER", "qos": "2", "retain": "", "respTopic": "", "contentType": "", "userProps": "", "correl": "", "expiry": "", "broker": "", "x": 990, "y": 140, "wires": [] }, { "id": "4135d8a69d68adfa", "type": "ui_switch", "z": "a01b03153d8e0a25", "name": "Prise grenier", "label": "Prise grenier", "tooltip": "", "group": "62a03679.3115e", "order": 8, "width": 0, "height": 0, "passthru": false, "decouple": "true", "topic": "POWER", "topicType": "str", "style": "", "onvalue": "ON", "onvalueType": "str", "onicon": "", "oncolor": "", "offvalue": "OFF", "offvalueType": "str", "officon": "", "offcolor": "", "animate": true, "x": 580, "y": 140, "wires": [ [ "823792710898b495" ] ] }, { "id": "12c688f756d557bb", "type": "alexa-smart-home-v3", "z": "a01b03153d8e0a25", "conf": "", "device": "33842", "acknowledge": true, "name": "", "topic": "", "x": 820, "y": 60, "wires": [ [ "823792710898b495" ] ] }, { "id": "992720a0909b35b6", "type": "alexa-smart-home-v3-state", "z": "a01b03153d8e0a25", "conf": "", "device": "33842", "name": "", "x": 580, "y": 60, "wires": [] }, { "id": "3f7aef351709cc39", "type": "function", "z": "a01b03153d8e0a25", "name": "", "func": "var state = msg.payload;\n\nreturn { \"payload\" : { \"state\" : { \"power\" : state } }, \"acknowledge\" : true };\n", "outputs": 1, "noerr": 0, "initialize": "", "finalize": "", "libs": [], "x": 360, "y": 80, "wires": [ [ "992720a0909b35b6" ] ] }, { "id": "62a03679.3115e", "type": "ui_group", "name": "HomeVRN", "tab": "83b277ec.8a0cd", "order": 1, "disp": true, "width": "6", "collapse": false }, { "id": "83b277ec.8a0cd", "type": "ui_tab", "name": "HomeVRN", "icon": "power", "order": 1, "disabled": false, "hidden": false } ]

@scobby
Copy link
Author

scobby commented Mar 8, 2023

thats not useful for me, i have over 100 devices and have a "central routing"-switch to go to a single home assistant turn_on/turn_off, etc. for your solution i would build 100 times the same...

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