Zigbee2mqtt: getting rid of your proprietary Zigbee bridges (Xiaomi, Hue, TRADFRI)

As @PlayedIn said, have you pushed the button.

1 Like

What are the buttons for actually?

I guess the one closest to the usb is the reset button.

Does anyone use a Xiaomi Water Sensor? Iā€™m wanting to use one but in reverse, ie detect the LACK of water as opposed to the presence of water. For those who own one do you think this would work?

Hello !
I have an Ikea Zigbee lamp and a Tradfri Remote Controll
I can turn the lamp on via HA and with the remote control on and off only when I look at the remote control on or off the status we did not change in the HA. Anything else we do not support the brightness with the remote control? Is the deconz hardware better? THANK YOU

Just got myself an Ikea Tradfri Dimmer ( ICTC-G-1)
struggleing hard to get an automation with this thing working.
someone using one and care to share?

- alias: Ikea Dimmer
  initial_state: 'on'
  trigger:
    platform: mqtt
    topic: 'zigbee2mqtt/IKEA DIMMER' 
  condition:
    - condition: state
      entity_id: light.YOURLIGHT
      state: 'on'    
  action:
    - service: light.turn_on
      data_template:
        entity_id: light.YOURLIGHT
        brightness: "{{ states.sensor.IKEA_DIMMER.state }}"
    - condition: template
      value_template: "{{ states.sensor.IKEA_DIMMER.state == '0' }}"
    - service: light.turn_off
      data:
        entity_id: light.YOURLIGHT
1 Like

Yeah I have one . It will work for you. Mine is outside and alerts me via Amazon Echo when it is raining and also when it has stopped raining.

1 Like

Do you use the alexa Media Player custom component for that.

Could you share your configuration?

I moved my automations to node red. I can post the flow if you use node red?

I donā€™t. Nevermind. Thanks

I pulled up those two automations from an old backup file for when it was in HA. These were only set to trigger between 8am and 11pm:

- id: 'raining'
  alias: Raining
  trigger:
  - entity_id: binary_sensor.0x00158d0002369013
    from: 'off'
    platform: state
    to: 'on'
  condition:
  - after: '8:00'
    before: '23:00'
    condition: time
  action:
  - data:
      entity_id: media_player.echo_plus
      message: It has begun to rain
    service: media_player.alexa_tts 

- id: 'not_raining
  alias: Not Raining
  trigger:
  - entity_id: binary_sensor.0x00158d0002369013
    from: 'on'
    platform: state
    to: 'off'
  condition:
  - after: '8:00'
    before: '23:00'
    condition: time
  action:
  - data:
      entity_id: media_player.echo_plus
      message: The rain has stopped
    service: media_player.alexa_tts
1 Like

I see you also use the alexa media player component. I thought maybe I missed something new.

Would be cool to be able to ask Alexa if it rains.
But I think this should already be possible with routines. The downside here would be that you have to remember the exact routine name.

I could imagine it like this:
Routine: ā€œDoes it rainā€ that triggers an input Boolean to turn on

Automation thatā€™s looks for that Boolean and than triggers the Mediaplayer to tell you the answer with an if thatā€™s looks for rain/notrain.

The issue here would be to know which Alexa was asked and only push the message to that device.

Of course you could always look out of the window, but this is only an example. Ask for the washing machine to be ready could be another.

Offtopic:
Whatā€™s was the reason to change to nodered? Object based programming?

Thereā€™s a different component that provides a sensor.last_alexa which is used to respond back to the correct echo:

Regarding why nodered? Because more complex automations are 100x easier and faster to create. The screenshot below is a node red automation. If I ask Alexa, ā€œIs the garage door open?ā€, alexa turns on the HA boolean. The automation then replies back to the amazon echo where I asked the question with one of four answers depending on whether one or both garage doors are open or closed. Creating this automation in HA took days and the help of more than 1 expert to get it right. I created it in node red in 10 minutes:

1 Like

Ok, I should also give nodered a try.

But for simple yes or no questions I could still do it with an automation.

Do you have that automation from before you switched to nodered in your backup?
Also how does you sensor config look like? This one?

Here is the thread for the garage doors. What a nightmare trying to automate that in HA that was. The last post in that two week struggle has the answer:

No, its this one as the other one is too slow:

I know the author of that says its no longer required and to use Keatonā€™s component, but Keatonā€™s last_alexa sensor doesnā€™t update quickly enough to use for most people.

Yeah, I tried that sensor and also wondered about it beeing slow.
And this way the alexa I talk with will probably not respond.
What a pitty I thought that I already have everything togehter to do this. So I have to look at the script too.

Iā€™m wondering how automation triggers the right alexa device, because you only got the echo_plus in there.
But Iā€™m searching for a automation that also uses that lastalexa sensor as an input for the mediaplayer.

something like

mediaplayer.{sensor.lastalexa}

Yes I have one it will work in reverse, I get dry or wet and when my garage gets water on the floor it triggers wet until itā€™s dry.

1 Like

What do you want to do with it? Do you want place the device completely in water?

Iā€™m a little concerned about the security score of nodered. Itā€™s only 2 of 6 so I think I will keep the automations in ha, but thanks for your examples.