Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95354

How to turn mqtt entity into a device?

$
0
0

@Pavel-Demidyuk wrote:

Hi,

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:

light:
  - platform: mqtt
    name: "test_lamp"
    unique_id: "a1c386fc-7777-11ea-bc55-0242ac130003"
    state_topic: "test_lamp/light/status"
    command_topic: "test_lamp/light/switch"

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.

Please suggest! Thanks.

Posts: 4

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 95354

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>