Hello again Three,
When I catched how the BigTimer works and the problem with dusk and sunrise. I start to think about to use the sun elevation instead, as I have been doing in the HA.
I created following flow
Where the siwtch node checks if the sun elevation is above or below 4 degree.
But I have one problem output from the switch node is a number (angle) and not on/off as I would like it to be. Do you know how to achieve this?
Here is my flow:
[{"id":"56e7520e.6a15ac","type":"switch","z":"3a862370.85bf5c","name":"Sun Angle","property":"payload","propertyType":"msg","rules":[{"t":"lte","v":"4.0","vt":"num"},{"t":"gt","v":"4.0","vt":"num"}],"checkall":"false","repair":false,"outputs":2,"x":520,"y":660,"wires":[["943237b9.26c7e8","ca1578a6.141898"],["1fc17d03.197323","497b1af1.da3e24"]]},{"id":"943237b9.26c7e8","type":"api-call-service","z":"3a862370.85bf5c","name":"Wall Plug 8 on","server":"da215a6e.38deb8","service_domain":"homeassistant","service":"turn_on","data":"{\"entity_id\":[\"switch.wall_plug_8\"]}","mergecontext":"","output_location":"","output_location_type":"none","x":780,"y":653,"wires":[[]]},{"id":"1fc17d03.197323","type":"api-call-service","z":"3a862370.85bf5c","name":"Wall Plug 8 off","server":"da215a6e.38deb8","service_domain":"homeassistant","service":"turn_off","data":"{\"entity_id\":[\"switch.wall_plug_8\"]}","mergecontext":"","output_location":"","output_location_type":"none","x":780,"y":760,"wires":[[]]},{"id":"27ece0c2.8bbac","type":"debug","z":"3a862370.85bf5c","name":"SunAngle","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":520,"y":600,"wires":[]},{"id":"e6a77004.9b019","type":"inject","z":"3a862370.85bf5c","name":"8:15","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"15 08 * * *","once":false,"onceDelay":0.1,"x":510,"y":740,"wires":[["1fc17d03.197323"]]},{"id":"ec49b1df.1969e","type":"inject","z":"3a862370.85bf5c","name":"22:20","topic":"","payload":"","payloadType":"date","repeat":"","crontab":"20 22 * * *","once":false,"onceDelay":0.1,"x":510,"y":780,"wires":[["1fc17d03.197323"]]},{"id":"ca1578a6.141898","type":"debug","z":"3a862370.85bf5c","name":"Sun below 4 degree","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":800,"y":620,"wires":[]},{"id":"497b1af1.da3e24","type":"debug","z":"3a862370.85bf5c","name":"Sun above 4 degree","active":true,"tosidebar":true,"console":false,"tostatus":false,"complete":"payload","targetType":"msg","x":800,"y":720,"wires":[]},{"id":"dffb5b9f.63f478","type":"server-state-changed","z":"3a862370.85bf5c","name":"Sun Elevation","server":"da215a6e.38deb8","entityidfilter":"sensor.sun_elevation","entityidfiltertype":"exact","outputinitially":false,"state_type":"str","haltifstate":"","halt_if_type":"num","halt_if_compare":"is","outputs":1,"output_only_on_state_change":true,"x":210,"y":660,"wires":[["27ece0c2.8bbac","56e7520e.6a15ac"]]},{"id":"da215a6e.38deb8","type":"server","z":"","name":"Home Assistant"}]