Hello,
I have installed the Netatmo integration in my HA.
I followed everything correctly i guess, but my problem is that :
The NLF switches are considered “lights” and it takes about 4-5 minutes to get the state update when switch on or off.
Is there anything to do for HA to get the state of the switch instantly ?
@cgtobi, i am not sure if it is the right way to go, but i ended up modifying your custom netatmo (BETA) component and changed the file device_types.py
Ok, great. What confuses me though, is that according to the documentation the NLF is actually a dimmer. That would mean that the dimming functionality is broken either in HA or pyatmo, no?
I am quite new to all this (only 4 months of HA), but here are my small inputs :
my NLF things are no dimmers at all, they are simple switches
there is no dimmer.xxx entity, HA discovers them as light.xxx, which is correct i guess ?
But then, it takes up to 5 minutes to get state change (ON /OFF)
Afetr having made the above modification in your custom component, HA discovered multiple entities : switch.xxx (instant state change) + light.xxx + sensor.xxx_power + sensor.xxx_reachability
@cgtobi Would you mind adding the ‘PowerMixin’ class to NLL type in order to have the power sensor populated ?
File legrand.py :
class NLL(FirmwareMixin, PowerMixin, EnergyMixin, WifiMixin, SwitchMixin, Module):
"""Legrand / BTicino italian light switch with neutral."""
(1: I am only testing my devices, maybe other types need that PowerMixin too ?)
(2: Maybe i should start making some PRs on your BETA component repo if i have other fixes ?)
Please open issues for missing dimmer capabilities either on the pyatmo or HA gihub issue tracker. I will see to get that fixed. Please also provide the exact type that is missing this capability.