Zigbee ventilation does'nt switch off

Hi, I have a zigbee switch on my attic that has 3 outputs to control ventilation. So, I can switch to 3 different speeds and totally off. The automatisation works and switches on/off on a time. But now and then the zigbee connection doesn’t come through. Like at 17:00 o’clock the ventilation has to switch off from the highest speed. ( high speed make a noise ) . But sometimes it does’nt switch off, and then I have to do that manualy.

Is there a easy way the change the automation that it controls the status of the switch with time/speed table.

the time/speed table is:

at 07:00 off
at 10:00 speed 3
at 17:00 off
at 23:00 speed 2

In the automation I set the time equal 07:00 to set the switch off. But if the zigbee signal doesn’t reach the switch it is still turning till 10:00 .

Can somebody point me how to change the automation to solve that problem?

Start by showing said automation. If you have trouble with Zigbee commands not going through you will need more routers.

The attic is super isolated and there is a router 1meter from the switch in the attic at the stairs where there is no isolation and the next router is 3 meter from the attic router.

- id: '1691606306522'
  alias: Badkamer ventilatie
  description: 'De ventilatie in de slaapkamer en badkamer.

    De schakelaar heeft 3 uitgangen L1, L2 en L3

  triggers:
  - at: '23:00:00'
    id: nacht ventilatie
    trigger: time
  - at: 07:00:00
    id: stop morgen ventilatie
    trigger: time
  - at: '10:00:00'
    id: dag ventilatie
    trigger: time
  - at: '17:00:00'
    id: stop namiddag ventilatie
    trigger: time
  conditions: []
  actions:
  - choose:
    - conditions:
      - condition: trigger
        id:
        - nacht ventilatie
      sequence:
      - data: {}
        action: script.badkamer_ventilatie_2
    - conditions:
      - condition: trigger
        id:
        - stop morgen ventilatie
      sequence:
      - data: {}
        action: script.badkamer_ventilatie_uit
    - conditions:
      - condition: trigger
        id:
        - dag ventilatie
      sequence:
      - data: {}
        action: script.ventilatie_bad_slaapkamer_3
    - conditions:
      - condition: trigger
        id:
        - stop namiddag ventilatie
      sequence:
      - data: {}
        action: script.badkamer_ventilatie_uit
  mode: single
badkamer_ventilatie_uit:
  alias: Ventilatie bad/slaapkamer uit
  sequence:
  - type: turn_off
    device_id: e6bfc6b23c49a47cb1052f12bb500a4d
    entity_id: fc99399e1d1fcd208fd13b1e9eabdb0e
    domain: switch
  - delay:
      hours: 0
      minutes: 0
      seconds: 0
      milliseconds: 100
  - type: turn_off
    device_id: e6bfc6b23c49a47cb1052f12bb500a4d
    entity_id: 3669ca0f4db1709668c7a9c3f57d59b0
    domain: switch
  - delay:
      hours: 0
      minutes: 0
      seconds: 0
      milliseconds: 100
  - type: turn_off
    device_id: e6bfc6b23c49a47cb1052f12bb500a4d
    entity_id: b553c11c24a663156f0cdf0c074ee552
    domain: switch
  mode: single
badkamer_ventilatie_2:
  alias: Ventilatie bad/slaapkamer 2
  sequence:
  - type: turn_off
    device_id: e6bfc6b23c49a47cb1052f12bb500a4d
    entity_id: b553c11c24a663156f0cdf0c074ee552
    domain: switch
  - delay:
      hours: 0
      minutes: 0
      seconds: 0
      milliseconds: 100
  - type: turn_off
    device_id: e6bfc6b23c49a47cb1052f12bb500a4d
    entity_id: fc99399e1d1fcd208fd13b1e9eabdb0e
    domain: switch
  - delay:
      hours: 0
      minutes: 0
      seconds: 0
      milliseconds: 100
  - type: turn_on
    device_id: e6bfc6b23c49a47cb1052f12bb500a4d
    entity_id: 3669ca0f4db1709668c7a9c3f57d59b0
    domain: switch
  mode: single
ventilatie_bad_slaapkamer_3:
  alias: Ventilatie bad/slaapkamer 3
  sequence:
  - type: turn_off
    device_id: e6bfc6b23c49a47cb1052f12bb500a4d
    entity_id: b553c11c24a663156f0cdf0c074ee552
    domain: switch
  - delay:
      hours: 0
      minutes: 0
      seconds: 0
      milliseconds: 100
  - type: turn_off
    device_id: e6bfc6b23c49a47cb1052f12bb500a4d
    entity_id: 3669ca0f4db1709668c7a9c3f57d59b0
    domain: switch
  - delay:
      hours: 0
      minutes: 0
      seconds: 0
      milliseconds: 100
  - type: turn_on
    device_id: e6bfc6b23c49a47cb1052f12bb500a4d
    entity_id: fc99399e1d1fcd208fd13b1e9eabdb0e
    domain: switch
  mode: single

Still, if you have trouble with zigbee traffic this is something you should look at.

For zigbee, you might have a look at this extensive guide: Zigbee network optimization: a how-to guide for avoiding radio frequency interference

Thanks, I have a look to the zigbee routers.

If I make a zigbee map in home assistant, I get a map result in 15sec of all the 31 zigbee nodes. And they are all connected to another.

I have a zigbee relay module with 8 relay’s and if I send an automatiton to switch off all the relay’s ( 8 different commands ), sometimes not all the relay’s are off. The relay module and the home assisant nuc are in the same room. So there is no problem of bad zigbee connection. Is it possible if there are other zigbee modules sending info at the same time I send my commands that there is an interference? So than some info is lost.

So the solution is to send 2 times the send off instruction to solve that problem.

How many of these route?

You can see the logs live, what do you see when you send the switch off commands? For reference I switch of 20+ zigbee devices at the same time daily, no issues at all.

I have 14 nodes that also route the zigbee signal.

This is what I get in the log if I set the 8 relay’s off. In the script are also 2 extra nodes : a dimmer and a plug for a lamp. Now everthing went like it should be.

info 2024-12-23 16:21:02z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Zitplaats dimmer luster', payload '{"backlight_mode":null,"brightness":127,"countdown":null,"light_type":"led","linkquality":255,"min_brightness":0,"power_on_behavior":"off","state":"OFF"}'
info 2024-12-23 16:21:02z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Zitplaats dimmer luster/type', payload '{"light":"led"}'
info 2024-12-23 16:21:02z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/8 Relais woonkamer', payload '{"click":null,"linkquality":255,"state_l1":"OFF","state_l2":"ON","state_l3":"ON","state_l4":"ON","state_l5":"ON","state_l6":"ON","state_l7":"ON","state_l8":"ON"}'
info 2024-12-23 16:21:02z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Zitplaats dimmer luster', payload '{"backlight_mode":null,"brightness":127,"countdown":null,"light_type":"led","linkquality":255,"min_brightness":0,"power_on_behavior":"off","state":"OFF"}'
info 2024-12-23 16:21:02z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Zitplaats dimmer luster/type', payload '{"light":"led"}'
info 2024-12-23 16:21:02z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/8 Relais woonkamer', payload '{"click":null,"linkquality":255,"state_l1":"OFF","state_l2":"OFF","state_l3":"ON","state_l4":"ON","state_l5":"ON","state_l6":"ON","state_l7":"ON","state_l8":"ON"}'
info 2024-12-23 16:21:02z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/8 Relais woonkamer', payload '{"click":null,"linkquality":255,"state_l1":"OFF","state_l2":"OFF","state_l3":"OFF","state_l4":"ON","state_l5":"ON","state_l6":"ON","state_l7":"ON","state_l8":"ON"}'
info 2024-12-23 16:21:02z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/8 Relais woonkamer', payload '{"click":null,"linkquality":255,"state_l1":"OFF","state_l2":"OFF","state_l3":"OFF","state_l4":"OFF","state_l5":"ON","state_l6":"ON","state_l7":"ON","state_l8":"ON"}'
info 2024-12-23 16:21:02z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Zitplaats dimmer luster', payload '{"backlight_mode":null,"brightness":127,"countdown":null,"light_type":"led","linkquality":255,"min_brightness":0,"power_on_behavior":"off","state":"OFF"}'
info 2024-12-23 16:21:02z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Zitplaats dimmer luster/type', payload '{"light":"led"}'
info 2024-12-23 16:21:02z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/8 Relais woonkamer', payload '{"click":null,"linkquality":255,"state_l1":"OFF","state_l2":"OFF","state_l3":"OFF","state_l4":"OFF","state_l5":"OFF","state_l6":"ON","state_l7":"ON","state_l8":"ON"}'
info 2024-12-23 16:21:02z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/8 Relais woonkamer', payload '{"click":null,"linkquality":255,"state_l1":"OFF","state_l2":"OFF","state_l3":"OFF","state_l4":"OFF","state_l5":"OFF","state_l6":"OFF","state_l7":"ON","state_l8":"ON"}'
info 2024-12-23 16:21:02z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/8 Relais woonkamer', payload '{"click":null,"linkquality":255,"state_l1":"OFF","state_l2":"OFF","state_l3":"OFF","state_l4":"OFF","state_l5":"OFF","state_l6":"OFF","state_l7":"OFF","state_l8":"ON"}'
info 2024-12-23 16:21:02z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Zitplaats staande lamp', payload '{"child_lock":"UNLOCK","countdown":0,"current":0.17,"energy":4.52,"indicator_mode":"off/on","linkquality":223,"power":17,"power_outage_memory":"restore","state":"OFF","update":{"installed_version":77,"latest_version":192,"state":"available"},"update_available":true,"voltage":225}'
info 2024-12-23 16:21:02z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Keuken switch', payload '{"linkquality":135,"power_on_behavior":null,"power_on_behavior_l1":"off","state_l1":"OFF","state_l2":"ON","switch_type":"momentary"}'
info 2024-12-23 16:21:02z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Veranda lichten', payload '{"indicate_light":"position","linkquality":159,"power_on_behavior":"off","state_l1":"OFF","state_l2":"OFF","state_l3":"ON"}'
info 2024-12-23 16:21:02z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Keuken switch', payload '{"linkquality":119,"power_on_behavior":null,"power_on_behavior_l1":"off","state_l1":"OFF","state_l2":"OFF","switch_type":"momentary"}'
info 2024-12-23 16:21:02z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Veranda lichten', payload '{"indicate_light":"position","linkquality":159,"power_on_behavior":"off","state_l1":"OFF","state_l2":"OFF","state_l3":"OFF"}'
info 2024-12-23 16:21:03z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Sauna lichten', payload '{"indicate_light":"position","linkquality":175,"power_on_behavior":"off","state_l1":"OFF","state_l2":"OFF","state_l3":"OFF"}'
info 2024-12-23 16:21:03z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/8 Relais woonkamer', payload '{"click":null,"linkquality":255,"state_l1":"OFF","state_l2":"OFF","state_l3":"OFF","state_l4":"OFF","state_l5":"OFF","state_l6":"OFF","state_l7":"OFF","state_l8":"OFF"}'
info 2024-12-23 16:21:03z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Drukknop inkom', payload '{"action":null,"click":null,"linkquality":255,"state_l1":"OFF","state_l5":"ON","state_l7":null,"state_l8":null}'
info 2024-12-23 16:21:03z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Drukknop inkom', payload '{"action":null,"click":null,"linkquality":255,"state_l1":"OFF","state_l5":"OFF","state_l7":null,"state_l8":null}'
info 2024-12-23 16:21:03z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Veranda lichten', payload '{"indicate_light":"position","linkquality":151,"power_on_behavior":"off","state_l1":"OFF","state_l2":"OFF","state_l3":"OFF"}'
info 2024-12-23 16:21:03z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Veranda buiten licht', payload '{"linkquality":151,"power_on_behavior":"off","state":"OFF"}'
info 2024-12-23 16:21:03z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Badkamer spiegelkast', payload '{"countdown":0,"linkquality":255,"power_on_behavior":"off","state":"OFF","switch_type":"momentary"}'
info 2024-12-23 16:21:03z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Veranda buiten licht', payload '{"linkquality":151,"power_on_behavior":"off","state":"OFF"}'
info 2024-12-23 16:21:03z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Badkamer spiegelkast', payload '{"countdown":0,"linkquality":255,"power_on_behavior":"off","state":"OFF","switch_type":"momentary"}'
info 2024-12-23 16:21:03z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Badkamer switch', payload '{"linkquality":255,"power_on_behavior":null,"state":"OFF"}'
info 2024-12-23 16:21:03z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Veranda lichten', payload '{"indicate_light":"position","linkquality":255,"power_on_behavior":"off","state_l1":"OFF","state_l2":"OFF","state_l3":"OFF"}'
info 2024-12-23 16:21:03z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Gang boven', payload '{"backlight_mode":"normal","linkquality":255,"power_on_behavior":null,"power_on_behavior_left":"off","state_left":"OFF","state_right":"OFF"}'
info 2024-12-23 16:21:03z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Veranda lichten', payload '{"indicate_light":"position","linkquality":255,"power_on_behavior":"off","state_l1":"OFF","state_l2":"OFF","state_l3":"OFF"}'
info 2024-12-23 16:21:05z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Zitplaats staande lamp', payload '{"child_lock":"UNLOCK","countdown":0,"current":0.17,"energy":4.52,"indicator_mode":"off/on","linkquality":255,"power":0,"power_outage_memory":"restore","state":"OFF","update":{"installed_version":77,"latest_version":192,"state":"available"},"update_available":true,"voltage":225}'
info 2024-12-23 16:21:06z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Badkamer spiegelkast', payload '{"countdown":0,"linkquality":255,"power_on_behavior":"off","state":"OFF","switch_type":"momentary"}'
info 2024-12-23 16:21:09z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Drukknop inkom', payload '{"action":null,"click":null,"linkquality":255,"state_l1":"OFF","state_l5":"OFF","state_l7":null,"state_l8":null}'
info 2024-12-23 16:21:14z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Kot stopcontact regenput', payload '{"child_lock":"UNLOCK","countdown":0,"current":0,"energy":1.77,"indicator_mode":"off/on","linkquality":255,"power":0,"power_outage_memory":"restore","state":"ON","update":{"installed_version":77,"latest_version":192,"state":"available"},"update_available":true,"voltage":225}'
info 2024-12-23 16:21:16z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Zitplaats staande lamp', payload '{"child_lock":"UNLOCK","countdown":0,"current":0,"energy":4.52,"indicator_mode":"off/on","linkquality":255,"power":0,"power_outage_memory":"restore","state":"OFF","update":{"installed_version":77,"latest_version":192,"state":"available"},"update_available":true,"voltage":225}'
info 2024-12-23 16:21:17z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Drukknop inkom', payload '{"action":null,"click":null,"linkquality":255,"state_l1":"OFF","state_l5":"OFF","state_l7":null,"state_l8":null}'
info 2024-12-23 16:21:18z2m:mqtt: MQTT publish: topic 'zigbee2mqtt/Kot stopcontact regenput', payload '{"child_lock":"UNLOCK","countdown":0,"current":0,"energy":1.77,"indicator_mode":"off/on","linkquality":255,"power":0,"power_outage_memory":"restore","state":"ON","update":{"installed_version":77,"latest_version":192,"state":"available"},"update_available":true,"voltage":225}'

.Perhapes I put some extra routers around.

1 Like