dtlzp / Domoticz-Dingtian-Relay-Plugin

Dingtian Relay Python Plugin for Domoticz
MIT License
5 stars 4 forks source link

Switching On relay does not update Switch Icon in domoticz #6

Open Chucky74 opened 2 months ago

Chucky74 commented 2 months ago

Working with a Dingtian IOT board DT-R004 with Domoticz Running in docker. Installed python driver 1.3 , setup the hardware to the IP number of the board, set to 4 channels , added relay switches from devices.

When I switch on one of the relay switches, it physicaly switches from off to on on the board, but the switch icon ( light bulb ) stays off. Also when refreshing the webpage the status does not change. I can turn off the switch only from the boards Webportal page, but not from Domoticz.

In the logs I found this: 2024-09-23 16:21:26.656 Status: User: theb0ss (IP: 172.17.0.1) initiated a switch command (49/Dingtian Relay - RELAY4/On) 2024-09-23 16:21:30.052 Dingtian Relay: onHeartbeat called 2024-09-23 16:21:40.066 Dingtian Relay: onHeartbeat called 2024-09-23 16:21:50.080 Dingtian Relay: onHeartbeat called

It seems that the onHeartbeat call is not answered back.

Any idea ?

dtlzp commented 2 months ago

check point1: UDP1 Protocol: "Dingtian-binary" Remote address: you Domoticz computer IP UDP2 Protocol: "Dingtian-string" Remote address: you Domoticz computer IP

check point2: you Domoticz computer firewall is off? please close all domoticz firewall allow UDP data from relay board

@.***

From: Chucky74 Date: 2024-09-23 21:23 To: dtlzp/Domoticz-Dingtian-Relay-Plugin CC: Subscribed Subject: [dtlzp/Domoticz-Dingtian-Relay-Plugin] Switching On relay does not update Switch Icon in domoticz (Issue #6) Working with a Dingtian IOT board DT-R004 with Domoticz Running in docker. Installed python driver 1.3 , setup the hardware to the IP number of the board, set to 4 channels , added relay switches from devices. When I switch on one of the relay switches, it physicaly switches from off to on on the board, but the switch icon ( light bulb ) stays off. Also when refreshing the webpage the status does not change. I can turn off the switch only from the boards Webportal page, but not from Domoticz. In the logs I found this: 2024-09-23 16:21:26.656 Status: User: theb0ss (IP: 172.17.0.1) initiated a switch command (49/Dingtian Relay - RELAY4/On) 2024-09-23 16:21:30.052 Dingtian Relay: onHeartbeat called 2024-09-23 16:21:40.066 Dingtian Relay: onHeartbeat called 2024-09-23 16:21:50.080 Dingtian Relay: onHeartbeat called It seems that the onHeartbeat call is not answered back. Any idea ? — Reply to this email directly, view it on GitHub, or unsubscribe. You are receiving this because you are subscribed to this thread.Message ID: @.***>

Chucky74 commented 2 months ago

Hello, Thanks for your reply. Checkpoint 1 is checked , both are set to the IP of the Synology NAS where Domoticz is installed on in docker. 192.168.1.150 Checkpoint 2: firewall on NAS was allrready turned off.

Still the relay turns on when I trigger the switch in Domoticz , but the status is not changed in domoticz ( stays off ) so I can't turn it off again in domoticz.