stjohnjohnson / smartthings-mqtt-bridge

Bridge between SmartThings and MQTT
https://hub.docker.com/r/stjohnjohnson/smartthings-mqtt-bridge/
MIT License
368 stars 243 forks source link

Suport HomeAssistant Device -> SmartThings #166

Open marciogranzotto opened 6 years ago

marciogranzotto commented 6 years ago

Hi,

I installed the bridge and got it working. However, this only seems to link SmartThings devices to HomeAssistant, not the other way around. Is that correct?

I wanted to be able to control my Home Assistant devices with Bixby. Especially now with Samsung releasing Galaxy Watch and Galaxy Home.

gandazgul commented 5 years ago

It depends on the device.

First make sure you select the device you want to control in the Smart App. Then see if the device capability you are trying to set has an action in the capabilities map: https://github.com/stjohnjohnson/smartthings-mqtt-bridge/blob/master/smartapps/stj/mqtt-bridge.src/mqtt-bridge.groovy#L24 If it doesn't have an action there then the device handler needs to implement a setStatus command to receive the status from the bridge (make sure your write suffix is different than the read one). If the action is there in the map then sending a message to the mqtt topic for your device should have worked.

When you action the device in HomeAssistant do you see a log from the bridge saying it received it?