Skip to content

False SYNCHRONISATION warning during HA startup when switch entity is temporarily unknown #250

Description

@danielbrunt57

On every Home Assistant restart, Irrigation Unlimited performs synchronization slightly before my Zigbee2MQTT switch entities have obtained their initial state.

Example:

01:50:53 — IU logs expected: off, found: unknown

01:50:56 — switch becomes off

Both configured switch entities behave identically.

It appears that unknown/unavailable during HA startup is being treated as a genuine state mismatch. Would it be appropriate for initial synchronization to defer checking entities in unknown/unavailable state until they have obtained a valid state?

Version of the custom_component

2025.12.0

Configuration

Image

Log

This error originated from a custom integration.

Logger: custom_components.irrigation_unlimited
Source: custom_components/irrigation_unlimited/irrigation_unlimited.py:5843
Integration: Irrigation Unlimited (documentation, issues)
First occurred: 1:50:53 AM (2 occurrences)
Last logged: 1:50:53 AM

SYNCHRONISATION [2026-08-06 01:50:53] Switch does not match current state: expected: off, found: unknown, switch: switch.sonoff_duo_1
SYNCHRONISATION [2026-08-06 01:50:53] Switch does not match current state: expected: off, found: unknown, switch: switch.sonoff_duo_2

State history of switch

Image

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions