- Platform information:
- Hardware: x86_64
- OS: Linux Bullseye - Openhab in Docker container
- Java Runtime Environment: OpenJDK Runtime Environment Zulu11.52+13-CA (build 11.0.13+8-LTS)
- openHAB version: openHAB 3.2.0 #2586
- Issue of the topic:
Issue, using the UI simple switch item is not discoverable by Alexa but slight change to metadata makes it discoverable.
No Discovery: Using UI and adding Alexa metadata (see below) as switch does NOT get discovered.
Note the metadata "Switch.PowerState"
{
"link": "http://192.168.1.10:8780/rest/items/BoilerPumpParlor",
"state": "OFF",
"metadata": {
"alexa": {
"value": "Switch.PowerState"
}
},
"editable": true,
"type": "Switch",
"name": "BoilerPumpParlor",
"label": "Boiler Pump Parlor",
"category": "pump",
"tags": [
"Point",
"Power"
],
"groupNames": [
"BoilerPumps"
]
}
However, if I manually add the metadata or just edit it to “PowerController.powerState” then the device is disovered:
{
"link": "http://192.168.1.10:8780/rest/items/BoilerPumpParlor",
"state": "OFF",
"metadata": {
"alexa": {
"value": "PowerController.powerState"
}
},
"editable": true,
"type": "Switch",
"name": "BoilerPumpParlor",
"label": "Boiler Pump Parlor",
"category": "pump",
"tags": [
"Point",
"Power"
],
"groupNames": [
"BoilerPumps"
]
}
Unfortunately the UI doesn’t show a “PowerController” as an option. Is there any cache that maybe I need to clear? I don’t know if maybe there was some persistant files left over during a docker update.
I’ve tried to create an item via text input (from the Openhab smarthome Alexa Skill Page):
Switch CoffeeMaker "Coffee Maker" {alexa="CoffeeMaker"}
but that is also not discovered.