Milight mit BidCoS-RF schalten

Node-RED als CCU3/RaspberryMatic Addon, WebApp, HomeKit, ...

Moderator: Co-Administratoren

Antworten
Semmy
Beiträge: 108
Registriert: 05.02.2017, 14:12

Milight mit BidCoS-RF schalten

Beitrag von Semmy » 14.04.2019, 10:25

Hallo
Ich möchte eine Milight mit einen BidCoS-RF Schalter der Zentrale über Redmatic schalten, welche Knoten werden hierzu benötigt?

Viele Grüße
Semmy
Raspberrymatic 3+
Raspberrymatic LAN-Gateway

Hypnos
Beiträge: 256
Registriert: 06.01.2018, 12:48
Hat sich bedankt: 12 Mal
Danksagung erhalten: 2 Mal

Re: Milight mit BidCoS-RF schalten

Beitrag von Hypnos » 14.04.2019, 23:13

Hallo,

hier hatte ich dir doch schon mal zu dem MiLight Teil geantwortet.

Für einen BidCoS-RF Schalter nimmst du einen Value Node. Der liefert in msg.paylosd ein true/false, also benötigst du noch einen change node, der das true/false beispielsweise in on/off ändert, wenn du ein/ausschalten willst. Im Change Node gibt es eine "Wechseln" oder "ersetzen" Möglichkeit, bei der false auf off und true auf on geändert werden kann. Dahinter direkt den Milight Node.

Mit einer Change Node kannst du auch den Topic setzen wenn du anstelle on/off Farben einstellen willst.

Falls du einen Taster und keinen Schalter hast, wird es etwas umfangreicher. Der sendet nur ein true bei einem Tastendruck. Das musst du für aus/ein in ein toggeln wandeln.

Gruß

Semmy
Beiträge: 108
Registriert: 05.02.2017, 14:12

Re: Milight mit BidCoS-RF schalten

Beitrag von Semmy » 15.04.2019, 07:33

Hallo
Ist soweit ok, aber wie macht man das mit den virtuellen Schaltern der CCU. Hier gibt es nur short und long?

Gruß
Semmy
Raspberrymatic 3+
Raspberrymatic LAN-Gateway

hobbyquaker
Beiträge: 3296
Registriert: 12.07.2009, 20:01
Danksagung erhalten: 17 Mal
Kontaktdaten:

Re: Milight mit BidCoS-RF schalten

Beitrag von hobbyquaker » 15.04.2019, 16:46

Willst Du mit einem Event toggeln (also auf PRESS_SHORT an und ausschalten) oder das trennen (mit PRESS_SHORT an und mit PRESS_LONG aus z.B.)?

Semmy
Beiträge: 108
Registriert: 05.02.2017, 14:12

Re: Milight mit BidCoS-RF schalten

Beitrag von Semmy » 15.04.2019, 17:09

Hallo
Wie würde denn die Lösung für beide Varianten aussehen?

Viele Grüße
Semmy
Raspberrymatic 3+
Raspberrymatic LAN-Gateway

Hypnos
Beiträge: 256
Registriert: 06.01.2018, 12:48
Hat sich bedankt: 12 Mal
Danksagung erhalten: 2 Mal

Re: Milight mit BidCoS-RF schalten

Beitrag von Hypnos » 16.04.2019, 08:41

Hier beide Varianten:
Screenshot 2019-04-16 at 08.39.27.png

Code: Alles auswählen

[{"id":"666eb5bb.a4d40c","type":"ccu-value","z":"41c55cf0.be39c4","name":"HmIP-RCV-50 :1 PRESS_SHORT","iface":"HmIP-RF","channel":"61A7D5698CED9D:1 HmIP-RCV-50 61A7D5698CED9D:1","datapoint":"PRESS_SHORT","mode":"","start":true,"change":true,"cache":false,"queue":false,"on":0,"onType":"undefined","ramp":0,"rampType":"undefined","working":false,"ccuConfig":"38263145.35ea0e","topic":"${CCU}/${Interface}/${channel}/${datapoint}","x":320,"y":3495,"wires":[["8f1e1e19.52253"]]},{"id":"d8878a0e.792918","type":"ccu-value","z":"41c55cf0.be39c4","name":"HmIP-RCV-50 :1 PRESS_LONG","iface":"HmIP-RF","channel":"61A7D5698CED9D:1 HmIP-RCV-50 61A7D5698CED9D:1","datapoint":"PRESS_LONG","mode":"","start":true,"change":true,"cache":false,"queue":false,"on":0,"onType":"undefined","ramp":0,"rampType":"undefined","working":false,"ccuConfig":"38263145.35ea0e","topic":"${CCU}/${Interface}/${channel}/${datapoint}","x":310,"y":3540,"wires":[["25fe5fa5.e5257"]]},{"id":"498bd045.58d5f","type":"MiLight","z":"41c55cf0.be39c4","name":"MiLight","bridgetype":"legacy","bulbtype":"white","zone":1,"ip":"255.255.255.255","broadcast":true,"x":735,"y":3510,"wires":[]},{"id":"8f1e1e19.52253","type":"change","z":"41c55cf0.be39c4","name":"on","rules":[{"t":"set","p":"payload","pt":"msg","to":"on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":3495,"wires":[["498bd045.58d5f"]]},{"id":"25fe5fa5.e5257","type":"change","z":"41c55cf0.be39c4","name":"off","rules":[{"t":"set","p":"payload","pt":"msg","to":"off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":3540,"wires":[["498bd045.58d5f"]]},{"id":"8a5b20dd.03f14","type":"ccu-value","z":"41c55cf0.be39c4","name":"HmIP-RCV-50 :1 PRESS_SHORT","iface":"HmIP-RF","channel":"61A7D5698CED9D:1 HmIP-RCV-50 61A7D5698CED9D:1","datapoint":"PRESS_SHORT","mode":"","start":true,"change":true,"cache":false,"queue":false,"on":0,"onType":"undefined","ramp":0,"rampType":"undefined","working":false,"ccuConfig":"38263145.35ea0e","topic":"${CCU}/${Interface}/${channel}/${datapoint}","x":320,"y":3660,"wires":[["4f2478ae.1fcbe8"]]},{"id":"9e5d8b27.f1f6f8","type":"change","z":"41c55cf0.be39c4","name":"on","rules":[{"t":"set","p":"payload","pt":"msg","to":"on","tot":"str"},{"t":"set","p":"milightState","pt":"flow","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":725,"y":3630,"wires":[["787b7b09.c2de04"]]},{"id":"4f2478ae.1fcbe8","type":"switch","z":"41c55cf0.be39c4","name":"","property":"milightState","propertyType":"flow","rules":[{"t":"false"},{"t":"else"}],"checkall":"false","repair":false,"outputs":2,"x":575,"y":3660,"wires":[["9e5d8b27.f1f6f8"],["bc887d32.d161a"]]},{"id":"bc887d32.d161a","type":"change","z":"41c55cf0.be39c4","name":"off","rules":[{"t":"set","p":"payload","pt":"msg","to":"off","tot":"str"},{"t":"set","p":"milightState","pt":"flow","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":725,"y":3675,"wires":[["787b7b09.c2de04"]]},{"id":"787b7b09.c2de04","type":"MiLight","z":"41c55cf0.be39c4","name":"MiLight","bridgetype":"legacy","bulbtype":"white","zone":1,"ip":"255.255.255.255","broadcast":true,"x":885,"y":3660,"wires":[]},{"id":"38263145.35ea0e","type":"ccu-connection","z":"","name":"Homematic","host":"localhost","regaEnabled":true,"bcrfEnabled":true,"iprfEnabled":true,"virtEnabled":true,"bcwiEnabled":true,"cuxdEnabled":true,"regaPoll":false,"regaInterval":"120","rpcPingTimeout":"60","rpcInitAddress":"127.0.0.1","rpcServerHost":"127.0.0.1","rpcBinPort":"2047","rpcXmlPort":"2048","queueTimeout":"5000","queuePause":"300","contextStore":"file"}]
Das hab ich jetzt nur mal auf die schnelle zusammengeklickt ohne zu testen.

Semmy
Beiträge: 108
Registriert: 05.02.2017, 14:12

Re: Milight mit BidCoS-RF schalten

Beitrag von Semmy » 17.04.2019, 08:43

Hypnos hat geschrieben:
16.04.2019, 08:41
Hier beide Varianten:
Screenshot 2019-04-16 at 08.39.27.png

Code: Alles auswählen

[{"id":"666eb5bb.a4d40c","type":"ccu-value","z":"41c55cf0.be39c4","name":"HmIP-RCV-50 :1 PRESS_SHORT","iface":"HmIP-RF","channel":"61A7D5698CED9D:1 HmIP-RCV-50 61A7D5698CED9D:1","datapoint":"PRESS_SHORT","mode":"","start":true,"change":true,"cache":false,"queue":false,"on":0,"onType":"undefined","ramp":0,"rampType":"undefined","working":false,"ccuConfig":"38263145.35ea0e","topic":"${CCU}/${Interface}/${channel}/${datapoint}","x":320,"y":3495,"wires":[["8f1e1e19.52253"]]},{"id":"d8878a0e.792918","type":"ccu-value","z":"41c55cf0.be39c4","name":"HmIP-RCV-50 :1 PRESS_LONG","iface":"HmIP-RF","channel":"61A7D5698CED9D:1 HmIP-RCV-50 61A7D5698CED9D:1","datapoint":"PRESS_LONG","mode":"","start":true,"change":true,"cache":false,"queue":false,"on":0,"onType":"undefined","ramp":0,"rampType":"undefined","working":false,"ccuConfig":"38263145.35ea0e","topic":"${CCU}/${Interface}/${channel}/${datapoint}","x":310,"y":3540,"wires":[["25fe5fa5.e5257"]]},{"id":"498bd045.58d5f","type":"MiLight","z":"41c55cf0.be39c4","name":"MiLight","bridgetype":"legacy","bulbtype":"white","zone":1,"ip":"255.255.255.255","broadcast":true,"x":735,"y":3510,"wires":[]},{"id":"8f1e1e19.52253","type":"change","z":"41c55cf0.be39c4","name":"on","rules":[{"t":"set","p":"payload","pt":"msg","to":"on","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":3495,"wires":[["498bd045.58d5f"]]},{"id":"25fe5fa5.e5257","type":"change","z":"41c55cf0.be39c4","name":"off","rules":[{"t":"set","p":"payload","pt":"msg","to":"off","tot":"str"}],"action":"","property":"","from":"","to":"","reg":false,"x":560,"y":3540,"wires":[["498bd045.58d5f"]]},{"id":"8a5b20dd.03f14","type":"ccu-value","z":"41c55cf0.be39c4","name":"HmIP-RCV-50 :1 PRESS_SHORT","iface":"HmIP-RF","channel":"61A7D5698CED9D:1 HmIP-RCV-50 61A7D5698CED9D:1","datapoint":"PRESS_SHORT","mode":"","start":true,"change":true,"cache":false,"queue":false,"on":0,"onType":"undefined","ramp":0,"rampType":"undefined","working":false,"ccuConfig":"38263145.35ea0e","topic":"${CCU}/${Interface}/${channel}/${datapoint}","x":320,"y":3660,"wires":[["4f2478ae.1fcbe8"]]},{"id":"9e5d8b27.f1f6f8","type":"change","z":"41c55cf0.be39c4","name":"on","rules":[{"t":"set","p":"payload","pt":"msg","to":"on","tot":"str"},{"t":"set","p":"milightState","pt":"flow","to":"true","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":725,"y":3630,"wires":[["787b7b09.c2de04"]]},{"id":"4f2478ae.1fcbe8","type":"switch","z":"41c55cf0.be39c4","name":"","property":"milightState","propertyType":"flow","rules":[{"t":"false"},{"t":"else"}],"checkall":"false","repair":false,"outputs":2,"x":575,"y":3660,"wires":[["9e5d8b27.f1f6f8"],["bc887d32.d161a"]]},{"id":"bc887d32.d161a","type":"change","z":"41c55cf0.be39c4","name":"off","rules":[{"t":"set","p":"payload","pt":"msg","to":"off","tot":"str"},{"t":"set","p":"milightState","pt":"flow","to":"false","tot":"bool"}],"action":"","property":"","from":"","to":"","reg":false,"x":725,"y":3675,"wires":[["787b7b09.c2de04"]]},{"id":"787b7b09.c2de04","type":"MiLight","z":"41c55cf0.be39c4","name":"MiLight","bridgetype":"legacy","bulbtype":"white","zone":1,"ip":"255.255.255.255","broadcast":true,"x":885,"y":3660,"wires":[]},{"id":"38263145.35ea0e","type":"ccu-connection","z":"","name":"Homematic","host":"localhost","regaEnabled":true,"bcrfEnabled":true,"iprfEnabled":true,"virtEnabled":true,"bcwiEnabled":true,"cuxdEnabled":true,"regaPoll":false,"regaInterval":"120","rpcPingTimeout":"60","rpcInitAddress":"127.0.0.1","rpcServerHost":"127.0.0.1","rpcBinPort":"2047","rpcXmlPort":"2048","queueTimeout":"5000","queuePause":"300","contextStore":"file"}]
Das hab ich jetzt nur mal auf die schnelle zusammengeklickt ohne zu testen.
Hallo
Vielen Dank. Die erste Variante ist ja einfach, aber die zweite, da wäre ich nie drauf gekommen, funktioniert einwandfrei.

Viele Grüße
Semmy
Raspberrymatic 3+
Raspberrymatic LAN-Gateway

Antworten

Zurück zu „RedMatic“