Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Description:
By adding the rule trigger
tele-power1#state
for relays (as done in PR #7088 for switches), this PR also unlocks several other triggers for rules, that were accessible before only by the scripting feature.New set of rule triggers:
tele-power1#state
tele-wifi1#ap
tele-wifi1#ssid
tele-wifi1#bssid
tele-wifi1#channel
tele-wifi1#RSSI
tele-wifi1#LinkCount
tele-wifi1#Downtime
Related issue (if applicable): fixes some custom periodics updates for power status as done in PR #7088 for switches. If a Home Automation Software can't use the information of teleperiod and/or status 11 as Tasmota's default, now the user can use a rule, to be triggered at teleperiod time, so as to periodically inform relay's status or wifi status like for example:
This PR is backwards compatible due there was no trigger for relays or wifi at teleperiod time and it also don't affect the instantaneous trigger
power1#state
.At this moment, the Tele message is like:
and with this PR, it changes to:
Checklist: