rdmtc / node-red-contrib-sun-position

This is a ultimate Node-Red Timer, Sun, Moon and Blind flow control.
Apache License 2.0
105 stars 24 forks source link

blind position (e.g. 68) restricted by maximum (100) #550

Open grobiballon opened 2 weeks ago

grobiballon commented 2 weeks ago

Hello, I have been trying out the shutter control for several hours now and don't understand the behavior. It always reports "Shutter position is determined by the position of the sun (68 is above the maximum)" but the maximum is defined as 100. levelMin: object // type: "levelFixed" // value: "closed (min)" levelMax: object // type: "levelFixed" // value: "open (max)"

In Addition the "mouse over caption" of the configuration is mixed. The mouse over caption for the min position shows the maximum position and vice versa.

Maybe I am too stupid or there is a bug.

{"reason":{"code":6,"state":"durch Sonnenstand (max)","description":"Rollladenposition wird durch den Sonnenstand bestimmt (64 ist über dem maximum)"},"blind":{"isDisabled":false,"levelTop":100,"levelBottom":0,"increment":1,"levelDefault":{"type":"levelFixed","value":"open (max)"},"levelMin":{"type":"levelFixed","value":"closed (min)"},"levelMax":{"type":"levelFixed","value":"open (max)"},"slat":{"type":"none","value":""},"topic":"","addId":{"type":"none","value":""},"overwrite":{"active":false,"importance":0,"expireDuration":600000},"levelBottomSun":0,"levelTopSun":100},"autoTrigger":{"defaultTime":60000,"time":60000,"type":7},"lastEvaluated":{"ruleId":-1,"ruleLevel":100,"ruleTopic":"","sunLevel":0,"level":0,"topic":""},"name":"Roll Arbeits","id":"e2a2346a.1c8238","srcId":"e2a2346a.1c8238","path":"e2a2346a.1c8238","rule":{"importance":0,"resetOverwrite":false,"hasMinimum":false,"hasMaximum":false,"active":false,"id":-1,"level":100,"topic":"","code":1,"state":"Standard","description":"Position ist auf Standard gesetzt, weil keine Regel zutrifft"},"sunPosition":{"ts":1719318680759,"lastUpdate":"2024-06-25T12:31:20.759Z","lastUpdateStr":"2024-06-25T14:31:20","latitude":52.17161,"longitude":7.53911,"angleType":"deg","azimuth":206.81733162074116,"altitude":59.109109020184924,"altitudeDegrees":59.109109020184924,"azimuthDegrees":206.81733162074116,"altitudeRadians":1.0316485703225062,"azimuthRadians":3.6096433869709137,"InWindow":true},"level":0,"levelInverse":100}

Regards, Andreas

grobiballon commented 2 weeks ago

Hi everyone,

I have now downgraded to version 2.1.1 and it works perfectly now. It really seems to be a bug...

Greetings Andreas