What am I missing here… is a device Id different from the entity_id? and if it is where do I find it? I’m getting this error on execution
Error while executing automation automation.new_automation. Invalid data for call_service at pos 1: must contain one of mac, dev_id.
In the value Template I’ve tried the full entity_id … device_tracker.life360_aaron_pitts
half the entity_id… “life360_aaron_pitts”
and the device_id from the known devices file “Life360_aaron_pitts”
Im trying to change the text that shows the current state of a device tracker see my other post "Getting Life360 to show driving… its up in Configuration
I’m running this WHILE AT home… so if home is true… it should trigger… right?
don’t use single quotes inside your overall single quoted value template.
either enclose your value template in single quotes and use double quotes inside: value_template: '{{is_state_attr("life360_aaron_pitts", "home",true)}}'
or enclose your value template in double quotes and use single quotes inside: value_template: "{{is_state_attr('life360_aaron_pitts', 'home',true)}}"
(and just to confirm, a double quote is not twice a single quote)
coming back to your question though, what exactly are you trying to achieve?
The Life360 sensor already returns driving if you are driving.
Also do you really want your status to show your status as driving when you’re home?
Last but not least, automations trigger on a state changed to xxx, not on while state is xxx
It was a copy and paste snippit I found someplace… no doubt they were trying to escape the single quote using a double single in C# we’d just use @ to deference the whole string
I’m trying to force a change in the displayed state of the device tracker…
and just to confirm, a double quote is not twice a single quote