I want that only when I´m home the automation make that mqtt publish, but in this moment this don´t happend, it no matters were I´m it always make the mqtt publish.
Create a script instead of an automation then make tap_action call the script. Scripts can contain conditions and runs services (they don’t have triggers).
Using a script as @123 suggested is the right way to do this. But just to answer your initial question, when you use the automation.trigger service, by default it ignores the conditions. If you want it to not ignore the conditions (i.e., only run the actions if the conditions are met), then you need to specify the skip_condition parameter with a value of false:
In PR 28484, which made the 0.104 release. I didn’t see it in the release notes either, but discovered it while working on the script & automation integrations (and the “script helper” they use.) You can also see it if you select the automation.trigger service on the SERVICES tab of the Developer Tools page. It’s shown in parameter list. Honestly, I can’t find where the automation.trigger service is documented.
I poked around the docs as well and there aren’t any docs I could find on any of the automation services either.
You would have thought that change in functionality to a base use of any home automation system wouldn’t have been buried way down deep in the “all changes” section of the release notes but would have had it’s own section in the main section. Having that available is kind of a big deal when troubleshooting your (or others) automations.
I definitely saw it announced publicly - in 0.104 release notes (search for “Trigger automation without skipping condition”)
Well, I tried to convince Frenck to change and formalise the automations documentation some time ago but it looks like they are not ready for that just yet. Agree, that bits of docs would benefit from updating.
Well, I do read release notes (and some PRs they implement) because it gives me some kind of up-to-date-ish information (as docs are not always updated in sync with the code).
Don’t know how it should and will be organised but the current state of docs on automation falls behind the majority. I pointed it out to devs and offered some help/ideas but apparently they have their own secret plan. So we can say anything…
Have you recently tried to find a page about command line binary sensor? It does exist in code and in docs but one can’t easily find the docs unless they go to Github and open an appropriate .markdown
WIP