I’m new to HA, so I’m sorry if my questions is dumb, but I still need some help to understand HA philosophy.
I’ve built some custom mqtt controlled lights and switches using 1-wire and now I’d like to expose them into HA. I’ve added this to configuration.yaml:
Ok, now I have test_lamp entity on the home screen. But as long as it’s just an entity, I can’t add it to any area, since I has to be a device then. So I wonder how to turn an entity into a device, but I feel like my question doesn’t make sense and I’m missing something.
I’m using Mosquitto with a SmartThings MQTT Bridge server, so there is no auto-discovery. I have a ton of MQTT entities that I can use to control and see the state of my ST gadgets, but I can’t get the entities built into devices.
Here’s the entity definition for a motion sensor I have configured in configuration.yaml, for example:
The docs are far from clear as to what is going on, but this is my best guess. But with that, I never see a new device created. I can see that the topic is going out correctly, though, if I subscribe to #.
Message 165 received on homeassistant/binary_sensor/Entryway_Motion/config at 1:06 PM:
{
"name": "Entryway_Motion",
"device_class": "motion",
"state_topic": "smartthings/Dome Motion/Light Sensor/motion"
}
Any help? I know this is an old topic, but I figured this was still on top and at least you guys have specific experience. Thanks.
Actually I figured out that I need to pass in a device definition as well. I’ve gotten that working, though I don’t know whether the created device works. I think the fact that the MQTT message for the sensor comes across as active/inactive instead of on/off is the issue, but that’s a separate topic for a separate thread.