Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

problem with MQTT- domoticz #2040

Closed
gatocamaron opened this issue Dec 3, 2019 · 2 comments · Fixed by #2049
Closed

problem with MQTT- domoticz #2040

gatocamaron opened this issue Dec 3, 2019 · 2 comments · Fixed by #2049

Comments

@gatocamaron
Copy link

Hi,
First of all, congratulate you on the project since I find it very useful when setting up my home.
The problem I have is that espurna communicates very well in the MQTT-domoticz sense. When I change the status to espurna, domoticz receives well and updates the status.
The problem is when I change state in domoticz, it does not change the state in espurna. MQTT receives the order well but it seems that espurna does not interpret well and does not change the state of the relay.
The log in espurna is as follows:
Espurna-domoticz:
[865905] [WEBSOCKET] Requested action: relay
[865906] [RELAY] #0 scheduled ON in 0 ms
[865910] [RELAY] #0 set to ON
[865913] [MQTT] Sending domoticz/in => {"idx": 2, "nvalue": 1, "svalue": ""} (PID 60)
[865914] [MQTT] Sending luzsofa/relay/0 => 1 (PID 61)
[865975] [MQTT] Publish ACK for PID 60
[866204] [MQTT] Publish ACK for PID 61
[866205] [MQTT] Received domoticz/out => {
"Battery" : 255,
"RSSI" : 12,
"description" : "luzsofa",
"dtype" : "Light/Switch",
"id" : "00014052",
"idx" : 2,
"name" : "luzsofa",
"nvalue" : 1,
"stype" : "Switch",
"switchType" : "On/Off",
"unit" : 1
}
[866224] [DOMOTICZ] Received value 1 for IDX 2
[866918] [RELAY] Setting relay mask: 0b1

Domoticz-espurna:

[952574] [MQTT] Received domoticz/out => {
"Battery" : 255,
"RSSI" : 12,
"description" : "luzsofa",
"dtype" : "Light/Switch",
"id" : "00014052",
"idx" : 2,
"name" : "luzsofa",
"nvalue" : 0,
"stype" : "Switch",
"svalue1" : "0",
"switchType" : "On/Off",
"unit" : 1
}
[952592] [DOMOTICZ] Received value 0 for IDX 2

The problem is that it simply ignores the message and does not change the relay.
Thanks in advance.

@m-kozlowski
Copy link
Contributor

it's two issues down on the list: #2034
including solution.

@gatocamaron
Copy link
Author

gatocamaron commented Dec 3, 2019

Solved Thank you very much for the quick answer. Regards.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging a pull request may close this issue.

2 participants