Alexa works with my desklamp with both power on/off and dimming. But Alexa has no clue if the light is currently on. OpenHAB reports lamp state correctly, even when i manually set the light (it talks on mqtt about state changes).
Alexa is the desk lamp on?
Desk Lamp doesn’t support that…
openhab25:/etc/openhab2/things# cat mqtt.things
Bridge mqtt:broker:rabbit
[
host="192.168.1.81",
clientID="openhab",
lwtQos=0,
qos=0,
reconnectTime=60000,
lwtRetain=true,
keepAlive=60,
secure=false,
publickeypin=true,
username="****",
password="****"
]
openhab25:/etc/openhab2/things# cat lamplight.things
Thing mqtt:topic:LampLight "Lamp Light" (mqtt:broker:rabbit) @ "Buddy's Room" {
Channels:
Type switch : LampPower [ stateTopic="homie/5ccf7f124d1f/light/power",
commandTopic="homie/5ccf7f124d1f/light/power/set",
on="on", off="off"]
Type dimmer : LampDimmer [ stateTopic="homie/5ccf7f124d1f/light/dimmer",
commandTopic="homie/5ccf7f124d1f/light/dimmer/set"]
}
openhab25:/etc/openhab2/items# cat lamplight.items
Group DeskLamp "Desk Lamp " {alexa="Endpoint.Light"}
Switch LampPower "Lamp Power" (DeskLamp) {alexa="PowerController.powerState",
channel="mqtt:topic:rabbit:5ccf7f124d1f:lamppower"}
Dimmer LampDimmer "Lamp Dimmer" (DeskLamp) {alexa="BrightnessController.brightness",
channel="mqtt:topic:rabbit:5ccf7f124d1f:lampdimmer"}