stjohnjohnson / smartthings-mqtt-bridge

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

Is it possible to combine devices? #138

Open iyruk opened 6 years ago

iyruk commented 6 years ago

I was hoping to find out if it is possible to combine entities.

for example. I have a smartthings multipurpose sensor, which has temp, motion, and battery.

Right now i have to add them all manually and create 3 separate entities for the 1 physical device. ie; sensor.device1_battery sensor.device1_temperature sensor.device1_motion

I would LOVE to be able to add the events as attributes to an existing entity so it is less cluttered. ie;

sensor.device1.attribute.battery/temp/motion

is that possible?

stjohnjohnson commented 6 years ago

Are you specifically asking how to add them to one device in HomeAssistant? I'm not quite sure about that, it might be possible but I've never tried.

This bridge only ships one value across MQTT, we could switch to a more complex value like JSON but that would only be useful if HomeAssistant supported that.

iyruk commented 6 years ago

Based on your response and some research, it seems like it's a limitation of MQTT for what i'm asking, so i would have to accomplish what i am asking within Home Assistant itself.

Do you have a solution with MQTT HSL Support for color lights (Hue/Saturation/Level)