I have an Aeotech multi-sensor configured in SmartThings and pushed to my MQTT bridge. I can see the requests both in the log:
2018-04-29 18:39:29 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on smartthings/Bedroom sensor/motion/state: b’active’
2018-04-29 18:39:29 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on smartthings/Bedroom sensor/temperature/state: b’75.2’
2018-04-29 18:39:29 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on smartthings/Bedroom sensor/humidity/state: b’35’
2018-04-29 18:39:29 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on smartthings/Bedroom sensor/illuminance/state: b’30’
as well as the mosquitto_sub
smartthings/Bedroom sensor/temperature/state 75.3
smartthings/Bedroom sensor/humidity/state 34
smartthings/Bedroom sensor/illuminance/state 28
smartthings/Bedroom sensor/motion/state inactive
I’ve spent a stupid amount of time trying to get my configuration.yaml right but the state is always ‘off’.
Here’s my current attempt:
binary_sensor:
- platform: mqtt
name: "Bedroom Motion"
state_topic: "smartthings/Bedroom sensor/motion/state"
payload_on: "active"
payload_off: "inactive"
Here’s my temperature setting.
- platform: mqtt
name: "Bedroom Temperature"
state_topic: "smartthings/Bedroom sensor/temperature/state"
This is in my logs, not sure it means anything.
2018-04-29 18:55:22 DEBUG (MainThread) [homeassistant.components.mqtt] Received message on smartthings/Bedroom sensor/temperature/state: b’75.5’
2018-04-29 18:55:22 WARNING (MainThread) [homeassistant.components.binary_sensor.mqtt] No matching payload found for entity: Bedroom Temperature with state_topic: smartthings/Bedroom sensor/temperature/state
I’m an idiot. I was trying to put my temp and humidity sensors under binary. Should have been obvious.