Code Monkey home page Code Monkey logo

Comments (9)

ciotlosm avatar ciotlosm commented on August 22, 2024

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.

philibertc avatar philibertc commented on August 22, 2024

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.

philibertc avatar philibertc commented on August 22, 2024

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.

philibertc avatar philibertc commented on August 22, 2024

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.

netweaver1970 avatar netweaver1970 commented on August 22, 2024

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.

philibertc avatar philibertc commented on August 22, 2024

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.

philibertc avatar philibertc commented on August 22, 2024

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.

philibertc avatar philibertc commented on August 22, 2024

Iā€™m gonna try this: Koenkk/zigbee2mqtt#4230

from hassio-zigbee2mqtt.

philibertc avatar philibertc commented on August 22, 2024

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)

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    šŸ–– Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo 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.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ā¤ļø Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.