Just a bit unsure of something. I have an automation that runs a sprinkler for 1 minute every morning. Automation works fine and obviously I can manually select execute to run it at any time I desire.
However, I would also like to put that automation into an entitys card with a button to allow the wife to click it when she thinks the sprinkler needs to run for upto a minute (or less by closing button).
I create the card and add the automation as the entity (maybe thats wrong) and when I click the button nothing happens. After some reading I believe that a script or more work is required but I wish to confirm that becuase to be honest I thought it would have been a lot easier (gui work).
I know that we could just click the main sprinkler entities card however Im trying to avoid leaving the sprinkler running hence why I wish to use the automations 1 minute timing.
1583150465888 is not the entity_id. The entity_id should be something like automation.xxxx. Go to Developer Tools -> States to find the entity_id of your automation.
Under States the entity is automation.topup_fountain
id: ‘1583150465888’
friendly_name: Topup Fountain
In the code above both automation.topup_fountain (which is written as entity: ) and entity_id (1583150465888) both provide the same error.
I honestly do not know the differance between entity: and entity_id but was assuming one was the name given by myself and the other a machine dedicated number.
Funnily enough if I go to Services and put the service as automatin.trigger and the entity as automatin.notify_home and ‘call service’ it works like a charm. Its getting that to the gui that I dont get.
The first column in Developer Tools -> States is always the entity_id. The id you see, is an attribute of this entity and it is used by the system but you don’t need to care about this number.