You may be using Visual studio Code but are you using a YAML checker with it? I’m asking because your examples, when pasted into my editor, are immediately flagged with YAML errors. Here’s an example (wavy underlining is the checker’s means of identifying potential problems):
The problem here is sufficiently evident to not even require a YAML checker. The third line lacks indenting and then the problems mount.
sorry Tom, must have missed the, I only saw the ‘or’ conditions.
can anyone explain the
person: >
{{ trigger.to_state.name }}
{%- for s in states.input_boolean
|rejectattr('entity_id','eq',trigger.entity_id)
|selectattr('state','eq','on')
if '_present' in s.entity_id and
(now() - s.last_changed).total_seconds() < 2 -%}
{{ (' and ' if loop.last else ', ') ~ s.name }}
{%- endfor %}
to me, I really don’t understand why some things are there. Take the triggers, in which the name always contains ‘_present’.Why then test for that again in this template?
also for 2 triggers this seems a bit over the top, when either of the triggers could have simply been replaced with the name and entered in the message as variable?
to be honest I copied it from someone else’s automation to announce the name of a person arriving home - by replacing the PERSON with the new arrivals entrance (the name pulled from the input_boolean)…it works so not really looked too deep into the structure.
Maybe 2 triggers as it kicks in for multiple people arriving.
I have a few cameras running on a Blue Iris Server that feeds Home Assistant via a MQTT feed for the motion sensors.
3 Fire Tablets throughout the house running Fully Kiosk Browser on Fire Tablets.
Currently I have automation and scripts setup to go to full screen of that camera for 3 minutes on each of the Fire Tablets and then return to the base home assistant start page after 3 minutes. This is a static automation without conditions.
Please if I could receive assistance on:
Motion --> Full screen video pops up on Fully Kiosk Browser, need assistance with conditional statement/timer that keeps that full screen up if there is continued motion triggered (Currently it is set after 3 minutes to return back to the home screen regardless of future events)
Motion --> Full screen video pops up on Fully Kiosk, need assistance with a conditional statement that if there is any other motion triggered within 3 minutes of each other to bring up a different video url that includes all the cameras: http://192.168.87.66:81/mjpg/index/video.mjpeg. In addition, if there is persisted motion on any of the cameras to extend the video on the tablets rather than returning to the home screen.
Example: Front Door Motion, Full Screen Front Door Camera Video URL comes on Fire Tablets via Fully, 1 minute passes, Motion at Driveway --> I want at this point for a different URL to be sent to Fully Kiosk Browser that includes all the cameras (listed above).
Lastly, I have 2 of the Fire Tablets that go dim/screen off after no motion for 30 seconds or so. display.turn_on via Fully does turn on the screens. I’d like to be able to integrate display.turn_on throughout the video sequences above and not have them go dark.
Example of Current Automations/Scripts:
Front Door Motion Triggered – Scripts to pull up video on Kiosk Tablets
alias: FD Motion
trigger:
platform: state
entity_id: binary_sensor.mqtt_front_door_motion
to: ‘on’
action: