Closed M0uC0 closed 2 days ago
There are a few things here, but let's go by steps...
above_horizon
to below_horizon
and the opposite. The only reason I can imagine for all those instances you reported is to have this triggered when the attribute elevation
changes, which happens all the time. I certainly can improve this trigger to prevent this.x
icon in the selector. However, as mentioned at 2, the system will find that info anyways, although it won't use it for triggering.I will try to replicate this here, but, again, looking at the code, I don't see any reason for the automation triggering when no Sun entity is selected, so I would appreciate if you can share anything new you find about this in your system.
Thank you for your feedback. Concerning more data from my system..
sensor.sun currently reports "Above horizon" (13h52).. and is reporting this state since 7h28. Although nothing has changed since 7h28.. Logbook has data being recorded every 4min. (more or less).
Related to removing the "sensor.sun" from the automation, if i add the sensor and save.. in yaml code i find: " sun_entity: sun.sun" If i remove the sensor and save, in yaml the above line disapears... but in the UI it appears again when i reopen the automation UI.. (although in yaml still not appearing). even without that line in yaml, Logbook still records "triggered by state of Sun".
Talking about the NSPanel logbook (de device itself).. nothing to complaint about. Last record 4hours ago when i left home and my motion sensor turned on the light and after a while.. the light went off.
Logbook from device:
Automation records from logbook:
Logbook from "sun":
And Sun is showing:
Related to removing the "sensor.sun" from the automation, if i add the sensor and save.. in yaml code i find: " sun_entity: sun.sun" If i remove the sensor and save, in yaml the above line disapears... but in the UI it appears again when i reopen the automation UI.. (although in yaml still not appearing). even without that line in yaml, Logbook still records "triggered by state of Sun".
That's right... It's set as default, so if nothing is selected, it will use that. 😞
sensor.sun currently reports "Above horizon" (13h52).. and is reporting this state since 7h28. Although nothing has changed since 7h28.. Logbook has data being recorded every 4min. (more or less).
It's probably triggering by the change in the attribute elevation
. I will change that trigger to avoid this.
I was wondering if i ever had sun.sun defined in the automations and so i set all the 5 automations to use sun.sun. Now in all 5 automations the yaml shows " sun_entity: sun.sun" And with all set nothing changes.. the logbook still shows events every 4min.
Yeah! It's a bug. I will fix that asap.
i checked sun elevation... it updates every 4min. at the same time has the logbook entries.
Yeah! It's a bug. I will fix that asap.
thank you.
I've fixed in dev
and it will be included in the next release soon.
TFT Version
4.3.2
Firmware Version
4.3.2
Blueprint Version
4.3.2
Panel Model
EU
What is the bug?
Hello,
I have a considerable number of events "triggered by state of Sun" on my HA logbook that i don't understand. Multiplied by 5 NSpanels i have, it would be great to know what is the purpose of them.
I tried to remove the sensor from each of the automations.. but it won't allow. I make the change to the automation, "Save" key won't appear.. if i change some other parameter then the "Save" will appear but the "sensor.sun" still appears after saving.
If i edit via yaml, i can't find it there.. but logbook continues to get "triggered by state of Sun"
Is it supposed to be like this? What is the purpose of this sensor on the NSPanel? Why so many triggers and what do they do?
Steps to Reproduce
No response
Your Panel's YAML
No response
ESPHome Logs
No response
Home Assistant Logs
No response