#Using `mqtt_room`
1 messages ยท Page 1 of 1 (latest)
the entity I have is sensor.galaxy_s23
the problem is that the only attribute there is distance instead of room presense
here's a screenshot
hmm.. I can't post screenshots
Please use imgur or other image sharing web sites, and share the link here.
Image posting is blocked in most channels to discourage people from sharing text as images. Sharing text as images assumes that everybody sees the world as you do, which isn't the case. Some people are colour blind, or have visual impairment that means they can't make sense of an image of text.
in any case, the entity doesn't expose the room presence. only distance
What's the source device?
And ... what's on the phone that's publishing to MQTT?
Or did you misunderstand the question ๐
I guess I misundertood ๐
What's publishing to MQTT for that topic
the ibeacon of the phone?
the phone is pinging the espresense device
Ah... finally
espresense
https://espresense.com/home_assistant suggests the state should be home or not_home
I read that, but it didn't provide an example of how to use it in automation
I mean, I need a condition set in place
that condition being the state of the service.galaxy_s23
either not_home or gil_s_office
Well, it's just an entity
and if not_home == true proceed to turn off the lights
but HA doesn't expose an easy way to utilize the not_home variable
yes
but as you can see in my screenshot, that entity only provides distance, not the state
Open your Home Assistant instance and show your state developer tools
Look at the entity there
Also, you're picking the attribute, so there's only one
You should be just using the state
There you go
I don't understand
What part?
you are saying there you go as if the answer is there ๐ but I'm not picking it up
that entity only has distance
I don't know how to explain what I don't undertand that I should understand ๐
No, it doesn't
I expected to have a drop down menu with values of not_home and gil_s_office
and I'm not sure why I don't have them as options
You're looking at attributes, so that's what you're getting
Don't click in the attributes box
ok so should I just manually type gil_s_office in the state field?
Sure
https://ibb.co/XD8MHvz like this?
do I need to add it as a trigger, or just as a condition to check?
There are three sections to an automation:
trigger: When any one of these becomes true the automation starts processing. Only one trigger is ever responsible for starting an automation, if you make aconditionthat checks for more than one having started the automation then the condition can never be true.condition: These are checked after atriggerstarts the processing, and must be true for the automation to continue.action: This is the part that does something, and can also include further conditions.
Depends on what you're trying to do
not turn off the lights when I'm in the room ๐
https://ibb.co/SsDnnDf getting error still
