PHC2MQTT v5.02.06 Dimmer Rückmeldung fehlt

Mehr
31 Dez. 2025 11:49 #1 von Arne
Hello Simons,
I've been playing around with your hardware for a few days now, and by the way, great work. Unfortunately, the dimmer value feedback isn't working (or at least not for me). 
When I set the brightness in Home Assistant, everything happens correctly, but the percentage feedback doesn't change.
When I set the feedback value manually (MQTT Explorer), it is accepted by the GUI.

2025-12-31,10:35:34,I,MQTC,<m2p/cmd/ccmd=dim.2.out1.set.117.1
2025-12-31,10:35:34,I,EXTC,>dim.2.out1.set.117.1
2025-12-31,10:35:34,I,EXTC,<rsp=0
2025-12-31,10:35:34,I,STMD,<cmd/dim.2.out1=set.117.1
2025-12-31,10:35:34,I,MQTC,>p2m/cmd/dim.2.out1=set.117.1

The command line also shows that the corresponding command is missing.
I would propose something like:
MQTC,>p2m/sta/dim.2.lvl1=117

could you add this?

Best
Arne

 

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
31 Dez. 2025 16:04 #2 von simonjo
Hi Arne,
Dimmers return only the on/off state of the dimmer when you send a command.

This is because the final dimming value is reached after the specified time (1...x seconds).

You need to send a status command (dim.0.status) to get the on/off state AND the level (0-255) per dimmer channel.

mvg, Jo

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Mehr
02 Jan. 2026 20:53 #3 von Arne
Hi Jo,
thx
I solve the return value in HA with the following automation:
Code:
alias: phc2mqtt-dimmer0-value description: "" triggers:   - trigger: mqtt     options:       topic: p2m/cmd/dim.0.out0     alias: MQTT Dimmer Level dim.0.out0   - trigger: mqtt     options:       topic: p2m/cmd/dim.0.out1     alias: MQTT Dimmer Level dim.0.out1 conditions: [] actions:   - delay:       hours: 0       minutes: 0       seconds: 0       milliseconds: 300   - alias: "MQTT: Veröffentlichen dim.0.status"     action: mqtt.publish     metadata: {}     data:       qos: 0       retain: false       payload: dim.0.status       topic: m2p/cmd/ccmd mode: single

Bitte Anmelden oder Registrieren um der Konversation beizutreten.

Ladezeit der Seite: 0.826 Sekunden