Thread Rating:
  • 0 Vote(s) - 0 Average
  • 1
  • 2
  • 3
  • 4
  • 5
MQTT(HA) update Cycle
#9
Thumbs Up 
Hello,

I can confirm your fix is working perfectly for the digital input and outputs. No updates anymore for states that doesn't change. Smile

I'm afraid the threshold value isn't working for the analog signals. I just discovered this feature today.

For example: adc1
I have following threshold values for my motion detector connected to adc1:
- Custom value1 ( value when adc/dac is 0 ): 0
- Custom value2 ( value when adc/dac is max range ): 0
- Threshold ( Send mqtt when the change of sampling value is greater than it ): 100

I got a result between 1910 & 1950 when no motion is detected and 1500 - 1550 when motion is detected. I can see all changes between 1910 - 1950.
Thanks for the investigation. Great work!!!

Maybe one nice to have to conclude Big Grin ...
If someone changes the name of the input/output/adc within kincony ui, then it would be ideal that this is changed in the "name" field of the discovery message. (I don't think the unique name should change ...)

e.g.
Now
{
  "uniq_id": "D83BDAA886BC_switch_output02",
  "~": "homeassistant/switch/D83BDAA886BCoutput02",
  "name": "output02",
  "device": {
    "name": "A16v3",
    "identifiers": "D83BDAA886BC",
    "manufacturer": "KinCony",
    "model": "A16v3"
  },
  "config_topic": "~/config",
  "avty_t": "D83BDAA886BC/avail",
  "stat_t": "~/state",
  "cmd_t": "~/set",
  "payload_on": "on",
  "payload_off": "off",
  "state_on": "on",
  "state_off": "off"
}

Nice to have name
{
  "uniq_id": "D83BDAA886BC_switch_output02",
  "~": "homeassistant/switch/D83BDAA886BCoutput02",
  "name": "CUSTOM NAME",
  "device": {
    "name": "A16v3",
    "identifiers": "D83BDAA886BC",
    "manufacturer": "KinCony",
    "model": "A16v3"
  },
  "config_topic": "~/config",
  "avty_t": "D83BDAA886BC/avail",
  "stat_t": "~/state",
  "cmd_t": "~/set",
  "payload_on": "on",
  "payload_off": "off",
  "state_on": "on",
  "state_off": "off"
}
Reply


Messages In This Thread
MQTT(HA) update Cycle - by sserry - 05-01-2025, 04:21 PM
RE: MQTT(HA) update Cycle - by admin - 05-01-2025, 10:51 PM
RE: MQTT(HA) update Cycle - by sserry - 05-02-2025, 06:44 AM
RE: MQTT(HA) update Cycle - by admin - 05-03-2025, 07:55 AM
RE: MQTT(HA) update Cycle - by sserry - 05-04-2025, 03:18 PM
RE: MQTT(HA) update Cycle - by admin - 05-04-2025, 11:22 PM
RE: MQTT(HA) update Cycle - by sserry - 05-05-2025, 05:22 PM
RE: MQTT(HA) update Cycle - by admin - 05-06-2025, 01:22 PM
RE: MQTT(HA) update Cycle - by sserry - 05-06-2025, 06:53 PM
RE: MQTT(HA) update Cycle - by admin - 05-07-2025, 12:57 AM
RE: MQTT(HA) update Cycle - by sserry - 05-07-2025, 05:29 AM

Forum Jump:


Users browsing this thread:
1 Guest(s)