Edubits / Zway-MQTT

Publishes the status of devices to a MQTT topic and is able to set values based on subscribed topics.
Apache License 2.0
29 stars 16 forks source link

Duplicate values not ignored as requested in module instance settings #39

Open lubomirkamensky opened 5 years ago

lubomirkamensky commented 5 years ago

This is an extremely useful module.
It seems the option "Ignore duplicate values" doesn't work. I subscribe to multiple devices using a common tag and have the topic defined as %roomName%/%deviceName%. And this is what I get:

zway/malaPracovna/teplota 21.9
zway/malaPracovna/svetlo 21
zway/malaPracovna/teplota 21.9
zway/malaPracovna/svetlo 21
zway/malaPracovna/teplota 21.9
zway/malaPracovna/svetlo 21
lubomirkamensky commented 5 years ago

hmm, it seems to be working in the opposite way than I expected. When the option "Ignore duplicate values" is unchecked, the duplicates are filtered out.

ROYMartell commented 5 years ago

Find this feature too, when you uncheck "Ignore duplicate values" module begin to ignore duplicate values :)

kaistierl commented 5 years ago

Same here... Seems like the flag's behavior is inverted to what it should do by description.