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

Add support for Domoticz MQTT integration #3359

Open
wants to merge 10 commits into
base: main
Choose a base branch
from

Conversation

gneluka
Copy link

@gneluka gneluka commented Oct 27, 2024

Adding basic support for Domoticz MQTT integration.
Changes:

  • Added field for configuring "Domoticz In" topic under MQTT section of config page
  • Added "Parameter per number sequence" select and "Domoticz Counter Idx" field under MQTT section of config page
  • Updated javascript functions as needed to support these new fields: read, write and update parameters.
  • Updated ClassFlowMQTT to publish to the configured "Domoticz In" topic using the correct payload format for Domoticz counters.
  • Minor changes and updates to interface_mqtt and server_mqtt to support the added functionality.


MQTT IN topic for Domoticz integration, under which the counters are published.

Counter Idx is required.
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

does this refer to Parameter <NUMBER>.DomoticzIDX? If so, please name it that ways

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

It does. I have updated the parameter name as requested. Thanks

@@ -0,0 +1,4 @@
# Parameter `<NUMBER>.DomoticzIDX`
Default Value: ``
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Or should it be zero?

Copy link
Author

@gneluka gneluka Oct 28, 2024

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Actually there is no default value for the Idx in Domoticz. Neither ''(null string) nor zero are valid Idx values in Domoticz, A valid Idx for a Domoticz device, is an integer greater than zero. I have changed it to zero just to indicate that a numeric value is expected.
Thanks

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 this pull request may close these issues.

2 participants