emontnemery / hatasmota

MIT License
25 stars 20 forks source link

Feature request: Add an attribute to identify entities as related to the tasmota integration #35

Open SteveDinn opened 4 years ago

SteveDinn commented 4 years ago

I would like to be able to write a template in HA to pick up the IP addresses of all tasmota devices. I have several other sensors that have states that are IP addresses on my local network as well. I need to be able to differentiate those that come from the tasmota integration from the others. As of right now, there's no way for me to tell a tasmota-integration-created light from my manual MQTT light hand-written in YAML, nor the IP address sensors from my manually-created ones.

I would suggest adding an attribute similar to, (or exactly :))

  integration: tasmota

to all the entities created by the integration so we can tell in a template that we're dealing with a tasmota-integration-created entity.

Frankly, I think all integration-created entities should have something like this.

effelle commented 4 years ago

I'm not sure if it will be useful for the bigger audience but... Noted!

SteveDinn commented 4 years ago

Well, hopefully it's easy to implement, and it should be inconsequential to anyone who doesn't care about it.