Homematic component does not show CUxD devices

You are right the formulas do not need to be 100% accurate. In principle the Magnus formula is also just an approximation. However it is fatal if you try to use two different such approximations in the same automation system.

I will leave CUxD in operation as it does not add another device to the ‘crucial’ venting to prevent mold. Since I moved some of the other scripts to HomeAssistant the CCU2 can quite efficiently work on that - even when the docker container for Home Assistant is down for whatever reason.

To still display values and maybe script more on them I will try to use the BIN-RPC Converter you indicated above which can be found here: https://homematic-forum.de/forum/viewtopic.php?f=44&t=8211

Thank you for the constructive discussion. :slight_smile:

For future visitors (found the topic by Google):
To control CUxD devices from HomeAssistant you can use RedMatic on your CCU/RaspberryMatic and control the CUxD device by a mqtt broker.

1 Like

Hey that sounds promising. To be honest I have never used RedMatic and realizing a CUXD device intergration would be my only reason to start with it.

@tringler Is it possible to post an example for RedNote and mqtt newbies?

Just to avoid a misunderstanding - RedMatic is just NodeRed with Homematic Nodes as a HomeMatic 3rd party add-on.
This is my use-case to control my 433Mhz covers:

[{"id":"ad41a438.412a88","type":"tab","label":"CUxD2MQTT","disabled":false,"info":""},{"id":"f2fea849.b6047","type":"ccu-value","z":"ad41a438.412a88","name":"Rolladen schließen","iface":"CUxD","channel":"CUX4009001:2 workroom_cover:2","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":590,"y":200,"wires":[[]]},{"id":"47577fb3.8e0a48","type":"ccu-value","z":"ad41a438.412a88","name":"Rolladen öffnen","iface":"CUxD","channel":"CUX4009001:1 workroom_cover: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":580,"y":140,"wires":[[]]},{"id":"2c3aae70.8b157a","type":"mqtt in","z":"ad41a438.412a88","name":"","topic":"cover/workroom/set","qos":"2","datatype":"utf8","broker":"3be2ebe7.e23be4","x":130,"y":140,"wires":[["ca29ab58.509028"]]},{"id":"ca29ab58.509028","type":"switch","z":"ad41a438.412a88","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"OPEN","vt":"str"},{"t":"eq","v":"CLOSE","vt":"str"}],"checkall":"false","repair":false,"outputs":2,"x":330,"y":140,"wires":[["47577fb3.8e0a48"],["f2fea849.b6047"]]},{"id":"1afce398.09831c","type":"ccu-value","z":"ad41a438.412a88","name":"Rolladen schließen","iface":"CUxD","channel":"CUX4009003:2 livingroom_cover:2","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":590,"y":500,"wires":[[]]},{"id":"fc718b42.08f328","type":"ccu-value","z":"ad41a438.412a88","name":"Rolladen öffnen","iface":"CUxD","channel":"CUX4009003:1 livingroom_cover: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":580,"y":440,"wires":[[]]},{"id":"3ea6b3b1.18a97c","type":"mqtt in","z":"ad41a438.412a88","name":"","topic":"cover/livingroom/set","qos":"2","datatype":"utf8","broker":"3be2ebe7.e23be4","x":130,"y":440,"wires":[["daedf030.9a655"]]},{"id":"daedf030.9a655","type":"switch","z":"ad41a438.412a88","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"OPEN","vt":"str"},{"t":"eq","v":"CLOSE","vt":"str"}],"checkall":"false","repair":false,"outputs":2,"x":330,"y":440,"wires":[["fc718b42.08f328"],["1afce398.09831c"]]},{"id":"9398eaf0.141e08","type":"ccu-value","z":"ad41a438.412a88","name":"Rolladen schließen","iface":"CUxD","channel":"CUX4009002:2 guestroom_cover:2","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":590,"y":360,"wires":[[]]},{"id":"9f6741ac.85989","type":"ccu-value","z":"ad41a438.412a88","name":"Rolladen öffnen","iface":"CUxD","channel":"CUX4009002:1 guestroom_cover: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":580,"y":300,"wires":[[]]},{"id":"a2ede75c.81a698","type":"mqtt in","z":"ad41a438.412a88","name":"","topic":"cover/guestroom/set","qos":"2","datatype":"utf8","broker":"3be2ebe7.e23be4","x":130,"y":300,"wires":[["2f4b3626.53d13a"]]},{"id":"2f4b3626.53d13a","type":"switch","z":"ad41a438.412a88","name":"","property":"payload","propertyType":"msg","rules":[{"t":"eq","v":"OPEN","vt":"str"},{"t":"eq","v":"CLOSE","vt":"str"}],"checkall":"false","repair":false,"outputs":2,"x":330,"y":300,"wires":[["9f6741ac.85989"],["9398eaf0.141e08"]]},{"id":"38263145.35ea0e","type":"ccu-connection","z":"","name":"localhost","host":"localhost","regaEnabled":true,"bcrfEnabled":true,"iprfEnabled":true,"virtEnabled":true,"bcwiEnabled":false,"cuxdEnabled":true,"regaPoll":true,"regaInterval":"30","rpcPingTimeout":"60","rpcInitAddress":"127.0.0.1","rpcServerHost":"127.0.0.1","rpcBinPort":"2047","rpcXmlPort":"2048","queueTimeout":"5000","queuePause":"250","contextStore":""},{"id":"3be2ebe7.e23be4","type":"mqtt-broker","z":"","name":"hass-broker","broker":"192.168.178.200","port":"1883","clientid":"","usetls":false,"compatmode":false,"keepalive":"60","cleansession":true,"birthTopic":"","birthQos":"0","birthPayload":"","closeTopic":"","closeQos":"0","closePayload":"","willTopic":"","willQos":"0","willPayload":""}]

On HomeAssistant config:

cover:
  - platform: mqtt
    name: workroom
    command_topic: "cover/workroom/set"
  - platform: mqtt
    name: guestroom
    command_topic: "cover/guestroom/set"
  - platform: mqtt
    name: livingroom
    command_topic: "cover/livingroom/set"

Thanks Tom.
This is exactly the use-case that I need as well.
Now I will try to figure out how to aply this use-case to my setup.

I have already installed the Redmatic addon. (I cannot see my CUXD devices even if I try activivate the interface)

I guess next step is to install the necessary MQTT addon for HA. Do I need a Server or just a Client?

Maybe I can start a Note Red Tutorial this evening.

Hi there, I found a similar solution to get cuxd devices working.
redmatic was a good starting point, but as I only own a ccu2, and not a ccu3 this option is not available to me. But it is not necessary to have node-red running as an ccu add.on, because we already have node-red in home assistant.

so all we have to do is adding this node-red node, which is also used inside redmatic

node-red-contrib-ccu

to home assistant node-red

installation:

in node-red use menu settings -> Palette -> install and search for “node-red-contrib-ccu”

my use case:

i have some old FS20 plugs (868 mhz) that i have added to ccu2 cuxd daemon

to make them usable with my home assistant I have added an

input_boolean.homematic_fs20_st_01

which i have used inside a state node, which is connected to an ccu-set-value node.

the ccu-set-value node is configured:


"iface": "CUxD",
"deviceName": "FS20_ST_01"
"channelName": "FS20_ST_01:1",
"channelType": "SWITCH",
"channelIndex": "1",
"datapoint": "STATE"

on first connection you have to configure the network connection to your ccu with “add new ccu connection”

just enter your ccu adress ip and tick the CuxD checkbox

for debugging you can use a ccu-rpc-event node with a debug node, so see the events, that the ccu send to home assistant.

now when click on my boolean switch “homematic_fs20_st_01” the command goes via rpc-bin to the ccu/cuxd and triggers my fs20 plug

Greetings,
JohnDoe

1 Like

You need a MQTT server. You need to activate CUXD in your CCU configuration node manually. Did you activated the interface there?