Generate State Data
Generally speaking, you should be using an "alexa-smart-home-v3" and "alexa-smart-home-v3-state" node on every flow.
Assuming you have already configured flows (that include the State node) for your devices, state reporting requires that you:
- Enable State Reporting on the device(s) you have defined on the Node-RED Bridge
- Re-run device discovery (via the command "Alexa, discover devices")
- "Dummy" state data is created against all devices, you'll need to execute commands/ update the device state to reflect the actual state of your device. Example commands to do this:
|Device Type||Capabilities||State Data||Commands|
|Smart Switch/ Smart Plug||PowerController||On/ Off||Alexa, turn on <device name>|
|Smart Bulb w/ Colour||PowerController, ColourController||On/ Off and Colour||Alexa, turn on <device name>, Alexa, set <device name> to green|
|Smart Bulb w/ Colour Temperature||PowerController, ColourTemperatureController||On/ Off and Colour Temperature||Alexa, turn on <device name>, Alexa, set <device name> to warm white|
|Thermostat||ThermostatController||Temperature, Thermostat Mode||Alexa, set <device name> to 22 degrees|
Troubleshooting State in Smart Home App
If you fail to generate all of the required state data the Alexa and Google Home apps will report "device is/ not responding" or similar errors.
To resolve this:
- Confirm you have enabled state reporting
- Review the capabilities you have enabled for the device
- Ensure you have generated state data for enabled capabilities, by executing commands
Still not working? Raise an issue.
The State Reporting API is rate limited as the Alexa App will poll an endpoint every 3 seconds when open. To minimise impact to the service and its running costs a rate limit is in effect on the state reporting API. This limit will not impact the gross-majority of users.