Comments (11)
I don't think messages of the dimmer are the issue, but that the automation made based on the dimmer are an issue. Due to Koenkk/zigbee-herdsman-converters@ad29b2b it publishes more frequent -> if your automation responds to all of them using e.g. a dim command on a zigbee bulb, there will be a lot of commands.
from zigbee-herdsman.
I see, thanks. Wasn't thinking of that. Was thinking that z2m must be the issue because this is what I changed.
So the issue that I had to reflash my device way most probably something different, I had an error there but did not save it (sry). Can't find it in the logs any more.
This is my automation. Would it be better to use the sensor entity of the dimmer? I think this would probably change to often too? Or maybe adding some delay to the action at the end would help. But there is probably a more elegant way to do this.
- alias: ikea rotate - plus
initial_state: 'on'
trigger:
platform: mqtt
topic: 'zigbee2mqtt/ikea dimmer'
condition:
- condition: template
value_template: "{{ trigger.payload_json.action in ['rotate_right', 'rotate_right_quick'] }}"
- condition: state
entity_id: light.wz
state: 'on'
action:
- service: light.turn_on
data_template:
entity_id: light.wz
brightness: "{{ states.light.wz.attributes.brightness | int + 25 }}"
from zigbee-herdsman.
From the zigbee2mqtt side you can use the debounce: https://www.zigbee2mqtt.io/information/configuration.html#device-specific-configuration
from zigbee-herdsman.
Perfect solution, thanks!
from zigbee-herdsman.
another workaround would be to add some kind of repeat number like LIRC does. It sends the remote code with a sequence number. It would be easier to pick the first message or every message with sequence modulo something.
I don't like the debounce param :)
Nov 10 22:37:29 lirc/status/tv/v- 0
Nov 10 22:37:29 lirc/status/tv/v- 1
Nov 10 22:37:29 lirc/status/tv/v- 2
Nov 10 22:37:29 lirc/status/tv/v- 3
Nov 10 22:37:29 lirc/status/tv/v- 4
Nov 10 22:37:29 lirc/status/tv/v- 5
@h4nc @Koenkk would that make sense ?
from zigbee-herdsman.
Seems like debounce works fine, lag is gone. Don't know if lire would make more sense. @Koenkk ?
from zigbee-herdsman.
i guess the elapsed attribute could also be used in HA automation: don't treat msg with a
small elapsed.
from zigbee-herdsman.
But would this mean the broker has to deal with all those messages. Isn’t it better to avoid this on the z2m side with debounce?
from zigbee-herdsman.
I feel debounce is a cleaner solution, it doesn't add any extra stuff to the payload keeping it clean. @h4nc would you mind making a PR to update the docs? https://github.com/Koenkk/zigbee2mqtt.io/blob/master/docs/devices/ICTC-G-1.md
from zigbee-herdsman.
my point of view here is that I don't want z2m to mask/merge/do anything-supposedly-smart with my zigbee messages and attributes.
I don't like the cache setting either, it's just here to circumvent a limitation of HA.
from zigbee-herdsman.
@lolorc I understand your point of view, but for me debounce is good enough as it solves my issue
would you mind making a PR to update the docs?
@Koenkk done
from zigbee-herdsman.
Related Issues (20)
- Ember driver : Error while parsing received frame, status=NO_RX_SPACE. HOT 1
- Ember driver: SET "APS_UNICAST_MESSAGE_COUNT" TO "32" with status=ERROR_OUT_OF_MEMORY. HOT 1
- State of ZiGate support HOT 17
- [Cluster Type] Align cluster definition for 'name' attribute HOT 1
- Silabs Zigbee EmberZNet 8.0.0.0 (and Silicon Labs Gecko SDK 5.0.0.0) announced and to be released in Q3 2024 HOT 1
- Waitress timer is being set at the wrong time HOT 16
- Make waitress timeout configurable HOT 1
- Lower bound of "turnsOffAtBrightness1" ignored by "brightness_move" & "brightness_step" commands HOT 1
- Issue with serialport v12 and node > v20.2.0 HOT 1
- Get strange error in latest z2m with the latest zigbee-herdsman HOT 6
- [Task] ZCL definition update HOT 4
- Want better endpoint.writeStructured() HOT 1
- Z2M 1.35.2 stops with "Adapter disconnected, stopping" after few minutes of uptime (Sonoff-E / EZSP v12 / FW 7.3.2.0 build 212) HOT 3
- Load additional manufacturer-specific clusters from device converter HOT 4
- [Proposal] Removal of "forever" Permit Join HOT 11
- Adapters hardware flow control issues HOT 30
- Ikea Motion Sensor E1525/E1745 not updating properly HOT 6
- proposal: deprecation of legacy clicks HOT 1
- Move special readResponse out of zhc/src/index.ts (fixes legrand pairing issues) HOT 8
- Changes to payload when sending zclData to a device breaks iobroker.zigbee function
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from zigbee-herdsman.