coldfire84 / node-red-alexa-home-skill-v3-web

Web Service/ API for Alexa and Google Home Node-RED Smart Home Control
https://red.cb-net.co.uk/
Apache License 2.0
51 stars 7 forks source link

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

Open scobby opened 3 years ago

scobby commented 3 years ago

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

Possible solutions:

bricodx commented 2 years ago

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 commented 1 year ago

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...