I’m using HASS with SmartThings and I’ve been using voice control for a while so I’m not sure when control from HASS stopped working, but it definitely worked before.
I can turn OFF lights via HASS but not ON ( the ON value is not being passed )
Here’s code for one of my lights
- platform: mqtt
name: "Office Light"
state_topic: "smartthings/Office Light/switch"
command_topic: "smartthings/Office Light/switch"
brightness_state_topic: "smartthings/Office Light/level"
brightness_command_topic: "smartthings/Office Light/level"
payload_on: "on"
payload_off: "off"
optimistic: false
retain: true
SmartThings logs show the following.
When I turn OFF the light
126f9fd4-9a7a-49d5-a6c2-ad89f57d5371 8:31:17 PM: debug Received device event from bridge: [name:Office Light, value:off, type:switch]
ac4c8bbb-78d5-43d1-aeb9-653bff9f9d21 8:31:17 PM: debug Parsing 'index:08, mac:18A90528CF5A, headers:UE9TVCAvIEhUVFAvMS4xDQpob3N0OiAxMC4wLjAuOTM6Mzk1MDANCmFjY2VwdDogYXBwbGljYXRpb24vanNvbg0KY29udGVudC10eXBlOiBhcHBsaWNhdGlvbi9qc29uDQpjb250ZW50LWxlbmd0aDogNTMNCkNvbm5lY3Rpb246IGNsb3Nl, body:eyJuYW1lIjoiT2ZmaWNlIExpZ2h0IiwidHlwZSI6InN3aXRjaCIsInZhbHVlIjoib2ZmIn0='
When I turn ON the light
126f9fd4-9a7a-49d5-a6c2-ad89f57d5371 8:31:49 PM: error java.lang.NumberFormatException: For input string: "" @ line 527
126f9fd4-9a7a-49d5-a6c2-ad89f57d5371 8:31:49 PM: debug Received device event from bridge: [name:Office Light, value:, type:level]
ac4c8bbb-78d5-43d1-aeb9-653bff9f9d21 8:31:49 PM: debug Parsing 'index:03, mac:18A90528CF5A, headers:UE9TVCAvIEhUVFAvMS4xDQpob3N0OiAxMC4wLjAuOTM6Mzk1MDANCmFjY2VwdDogYXBwbGljYXRpb24vanNvbg0KY29udGVudC10eXBlOiBhcHBsaWNhdGlvbi9qc29uDQpjb250ZW50LWxlbmd0aDogNDkNCkNvbm5lY3Rpb246IGNsb3Nl, body:eyJuYW1lIjoiT2ZmaWNlIExpZ2h0IiwidHlwZSI6ImxldmVsIiwidmFsdWUiOiIifQ=='
HASS shows - OFF
17-01-19 20:39:41 homeassistant.core: Bus:Handling <Event call_service[L]: service_call_id=1977716816-26, service_data=entity_id=light.office_light, service=turn_off, domain=homeassistant>
17-01-19 20:39:41 homeassistant.core: Bus:Handling <Event call_service[L]: service_call_id=1977716816-27, service_data=entity_id=['light.office_light'], service=turn_off, domain=light>
17-01-19 20:39:41 homeassistant.core: Bus:Handling <Event call_service[L]: service_call_id=1977716816-28, service_data=retain=True, payload=off, qos=0, topic=smartthings/Office Light/switch, service=publish, domain=mqtt>
17-01-19 20:39:41 homeassistant.components.mqtt: Received message on smartthings/Office Light/switch: off
17-01-19 20:39:41 homeassistant.core: Bus:Handling <Event mqtt_message_received[L]: payload=off, qos=0, topic=smartthings/Office Light/switch>
HASS shows - On
17-01-19 20:39:46 homeassistant.core: Bus:Handling <Event call_service[L]: service_call_id=1977716816-29, service_data=entity_id=light.office_light, service=turn_on, domain=homeassistant>
17-01-19 20:39:46 homeassistant.core: Bus:Handling <Event call_service[L]: service_call_id=1977716816-30, service_data=entity_id=['light.office_light'], service=turn_on, domain=light>
17-01-19 20:39:46 homeassistant.core: Bus:Handling <Event call_service[L]: service_call_id=1977716816-31, service_data=retain=True, payload=on, qos=0, topic=smartthings/Office Light/switch, service=publish, domain=mqtt>
17-01-19 20:39:47 homeassistant.components.mqtt: Received message on smartthings/Office Light/switch: on
17-01-19 20:39:47 homeassistant.core: Bus:Handling <Event mqtt_message_received[L]: payload=on, qos=0, topic=smartthings/Office Light/switch>
Any ideas?
thanks