I am very new to Home Assistant and making really first steps. I’ ve set successfully few MQTT devices (connected to pgysical MQTT switches - Shelly 2) and also have MQTT virtual devices from Smartthings MQTT Bridge. I would like to link them (to operate everything from Smartthings could). I am trying to set automation like below, but simple stupid question: how do I call action for entity_id for device that has not entity_id (for MQTT devices it prohibited and putting it in configuration.yaml gives error)? How can I address my light in setup like this? Should I refer to its name or something?
So you are saying that the light you created in configuration.yaml doesn’t result in any entity showing up in the dev-states page under the light domain?
@tom_l, do you mean I forgot to put in device or automation action? In device I cannot put (I got configuration invalid error like on screen above) and i automation it was used exactly like you mentioned (in the first post in the topic - without any output.
Regardless of lack to possbility to call entity_id (because it can’t be set for MQTT Light or MQTT Switch), what I am really trying to do here is sync two different MQTT topics to change when the other changes. So I figured to trigger and call in action only MQTT topics like below, but is two problems:
1.Even the one side automation like below doesn’t work
2.I guess putting reverse automation (topic 2 as trigger and trigeer 1 as action) will cause infinite loop of sending MQTT message between this two topics.
in the example picture that you posted you are trying to force an entity_id: key but you aren’t allowed to do that. But you don’t need to do that either. The entity_id is automatically created from the name of the light.
Thank you @finity. This is what I was looking for. What about spaces and Caps. Will the name:
“Bathroom Secondary Light” will be changed to “bathroom_secondary_light” ?