Comments (9)
Was this working before? It depends from device to device, but usually wired devices publish a state periodically that updates their on / off state.
from hassio-zigbee2mqtt.
I don't know if it worked before: I recently received the osram outlets and for the ikea lamp I was passing the commands of the remote control via zigbee2mqtt.
This happens also on tradfri light : the lamp is connected to zigbee2mqtt and the remote control directly to the lamp. When I toggle via the remote control the status in zigbee2mqtt is updated only when I press the corresponding button in the interface.
In short: the lamp and the outlet don't send their On/Off status until I ask for it. Is there a way in zigbee2mqtt parameters to define regular updates? @ciotlosm
from hassio-zigbee2mqtt.
I will try this when a button on the remote is pressed:
action:
- delay:
hours: 0
minutes: 0
seconds: 1
milliseconds: 0
- service: mqtt.publish
data:
topic: zigbee2mqtt/tradfri_light_1/get
payload: '{"state": ""}'
from hassio-zigbee2mqtt.
Okay, it's a quick fix that works for the lamp since I always control it via a remote control.
But it doesn't solve the problem for the outlet because the integrated button only communicates with the outler.
from hassio-zigbee2mqtt.
You're looking for the Zigbee 'reporting' (and/or 'binding') functionality. (https://www.zigbee2mqtt.io/information/binding.html)
For the light & remote, using the full Build-in Z2M GUI you can easily bind the remote to the lamp. Also, at that time automatically Z2M will set up the reporting, so when someone presses the on/off on the remote (or whatever, like dimming) that the coordinator (and HA) is alerted of the state change.
You can also setup alerting (using lots of tunable parameters if you want) directly on the socket, so it reports always it's status back.
Easiest to set it up is using the Z2M GUI. there's currently quite some thinking going on on how to support/integrate the Z2M GUI function in the Z2M Add-on, to allow changes to be persistent, as there are now 3 possible ways of configuring the add-on (and devices). Only 1 can win... So things might not work straight away.
Doing it in config files using text-only might also be possible, using the existing Z2M Add-on syntax. But surely the GUI makes it effortless.
from hassio-zigbee2mqtt.
Hello, I tried several times the binding but each time I got a timeout error (I woke up the remote control by pressing a button). I gave up, so I paired the remote directly to the lamp (15 sec press on the button next to the battery) and the remote control stays on the zigbee2mqtt network also.
@netweaver1970
from hassio-zigbee2mqtt.
To retrieve the state of the lamp I created an automation that makes zigbee2mqtt/tradfri_light_1/get
as soon as I press a button.
And for the outlet I do the same thing every thirty seconds. It's certainly not the best solution but I don't have dozens of outlets so that's fine.
from hassio-zigbee2mqtt.
Iām gonna try this: Koenkk/zigbee2mqtt#4230
from hassio-zigbee2mqtt.
Okay, that work for the outlet but for the light it does nothing. That's not a problem related to the addon so I close this issue.
from hassio-zigbee2mqtt.
Related Issues (20)
- Z2M crash after i made restart HOT 2
- ECONNREFUSED error after 1.37.0-1 HOT 10
- zigbee2mqtt not starting under HAOS HOT 1
- Topics are no longer showing on the Logs page HOT 3
- Can not see debug log records in WEB interface HOT 1
- Home Assistant becomes unresponsive with newest zigbee2mqtt add-on version. HOT 25
- Unexpected token HOT 7
- Parts of my configuration.yaml are ignored (mqtt). How the heck can that be?? HOT 6
- Zigbee2mqtt is not working
- SLZB-06P7 - Unsupported HOT 6
- EnOcean PTM 215ZE not showing in map HOT 1
- What to doo HOT 3
- All items in dashboard and devices tabs are gone after clicking "unlabeled" button in Z2M. HOT 1
- Configuration on official HA Yellow
- Error: SRSP - SYS - ping after 6000ms with ZBDongle-E HOT 10
- SLZB-07 - Unsupported HOT 1
- Philips Gradient lightstrip expose gradient as a sensor, not a control. HOT 2
- Frontend not starting HOT 13
- after update to 1.39-01 ver Add-on try to start but fails HOT 7
- Doesn't work on a Raspberry Pi with 1GB of RAM? HOT 1
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 hassio-zigbee2mqtt.