NEWS
Raspberry Pi 4 aktiven Lüfter steuern
ioBroker Allgemein
23
Beiträge
7
Kommentatoren
19.8k
Aufrufe
7
Watching
-
Hier noch mal ein simples Beispiel in node-red, lässt sich natürlich noch beliebig tunen und erweitern:

[{"id":"c7158ecf.0f68e8","type":"tab","label":"Alexa","disabled":false,"info":""},{"id":"67a8eac.f8a9d94","type":"exec","z":"c7158ecf.0f68e8","command":"gpio mode 26 pwm","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"gpio mode 26 pwm","x":310,"y":60,"wires":[[],[],[]]},{"id":"94bd570c.1fd9a8","type":"inject","z":"c7158ecf.0f68e8","name":"","topic":"","payload":"Init","payloadType":"str","repeat":"","crontab":"","once":true,"onceDelay":0.1,"x":110,"y":60,"wires":[["67a8eac.f8a9d94"]]},{"id":"7e6cfa44.02931c","type":"inject","z":"c7158ecf.0f68e8","name":"Trigger 15s","topic":"","payload":"","payloadType":"date","repeat":"15","crontab":"","once":false,"onceDelay":0.1,"x":130,"y":140,"wires":[["8d985057.29349"]]},{"id":"8d985057.29349","type":"ioBroker get","z":"c7158ecf.0f68e8","name":"SOC Temperature","topic":"rpi2.0.temperature.soc_temp","attrname":"payload","payloadType":"value","x":150,"y":200,"wires":[["8d2e7103.1c215","f4acf8b3.bb47a","3b8d0070.e0237"]]},{"id":"8d2e7103.1c215","type":"hysteresis","z":"c7158ecf.0f68e8","name":"","ThresholdType":"fixed","ThresholdRising":"42","ThresholdFalling":"38","TopicThreshold":"","TopicCurrent":"","ThresholdDeltaRising":"","ThresholdDeltaFalling":"","InitialMessage":false,"OutRisingType":"pay","OutRisingValue":"","OutFallingType":"pay","OutFallingValue":"","OutTopicType":"top","OutTopicValue":"","x":380,"y":140,"wires":[["ef7a5a42.234278"]]},{"id":"f4acf8b3.bb47a","type":"hysteresis","z":"c7158ecf.0f68e8","name":"","ThresholdType":"fixed","ThresholdRising":"47","ThresholdFalling":"42","TopicThreshold":"","TopicCurrent":"","ThresholdDeltaRising":"","ThresholdDeltaFalling":"","InitialMessage":false,"OutRisingType":"pay","OutRisingValue":"","OutFallingType":"pay","OutFallingValue":"","OutTopicType":"top","OutTopicValue":"","x":380,"y":200,"wires":[["fa2a280f.aef118"]]},{"id":"3b8d0070.e0237","type":"hysteresis","z":"c7158ecf.0f68e8","name":"","ThresholdType":"fixed","ThresholdRising":"53","ThresholdFalling":"47","TopicThreshold":"","TopicCurrent":"","ThresholdDeltaRising":"","ThresholdDeltaFalling":"","InitialMessage":false,"OutRisingType":"pay","OutRisingValue":"","OutFallingType":"pay","OutFallingValue":"","OutTopicType":"top","OutTopicValue":"","x":380,"y":260,"wires":[["2df765b6.1838a2"]]},{"id":"ef7a5a42.234278","type":"switch","z":"c7158ecf.0f68e8","name":"","property":"payload","propertyType":"msg","rules":[{"t":"lt","v":"40","vt":"str"},{"t":"gte","v":"40","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":510,"y":140,"wires":[["3a715a7d.030ace"],["2f5be40b.a559dc"]]},{"id":"fa2a280f.aef118","type":"switch","z":"c7158ecf.0f68e8","name":"","property":"payload","propertyType":"msg","rules":[{"t":"lt","v":"45","vt":"str"},{"t":"gte","v":"45","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":510,"y":200,"wires":[["2f5be40b.a559dc"],["38678327.732de4"]]},{"id":"2df765b6.1838a2","type":"switch","z":"c7158ecf.0f68e8","name":"","property":"payload","propertyType":"msg","rules":[{"t":"lt","v":"50","vt":"str"},{"t":"gte","v":"50","vt":"str"}],"checkall":"true","repair":false,"outputs":2,"x":510,"y":260,"wires":[["38678327.732de4"],["fed32a3.d9981d8"]]},{"id":"3a715a7d.030ace","type":"exec","z":"c7158ecf.0f68e8","command":"gpio pwm 26 0","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"gpio pwm 26 0","x":680,"y":100,"wires":[[],[],[]]},{"id":"2f5be40b.a559dc","type":"exec","z":"c7158ecf.0f68e8","command":"gpio pwm 26 280","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"gpio pwm 26 280","x":690,"y":160,"wires":[[],[],[]]},{"id":"38678327.732de4","type":"exec","z":"c7158ecf.0f68e8","command":"gpio pwm 26 500","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"gpio pwm 26 500","x":690,"y":220,"wires":[[],[],[]]},{"id":"fed32a3.d9981d8","type":"exec","z":"c7158ecf.0f68e8","command":"gpio pwm 26 1023","addpay":false,"append":"","useSpawn":"false","timer":"","oldrc":false,"name":"gpio pwm 26 1023","x":690,"y":280,"wires":[[],[],[]]}]@haiperf Hi, die histeresis lässt sich nicht importieren!

-
@haiperf Hi, die histeresis lässt sich nicht importieren!

@flying-bolt ich weiß das Thema ist schon sehr alt aber gibt es einen Adapter um die GPIOś des Raspi aus IObroker zu steuern. Ich möchte mein PV Überschuss Leistungsabhängig steuern. Über einen zusätzlichen ESP mit Tasmota funktioniert das. Leider ist das Ganze nicht fail save. Sobald die Kommunikation abbricht bleibt der ESP in der Einstellung hängen.