Smart Plugs - Power Mode Selector Conflict #87
Replies: 4 comments
-
|
@tarontop |
Beta Was this translation helpful? Give feedback.
-
|
Does anyone else have this working? Even when changing this to default state = 2 (Always On), I find that after factory resetting a plug, that it continues to come back as 'Default OFF' ? Seems to be that only the first option is being read from the code. Just found that whilst changing option to '2' doesn't work (as it should do), that swapping around the options in the yaml, so ALWAYS_ON is first, does work. ${relay_restore_mode} maps to 'RESTORE_DEFAULT_ON' that should allow this logic to apply over the top of it (whilst ALWAYS_ON / ALWAYS_OFF when used there, would take precedence and cause this on_boot / selector to not work. |
Beta Was this translation helpful? Give feedback.
-
|
I have the same issue. After a factory reset, the switch is off (in my case the smart plug v2) with the default restore mode (RESTORE_DEFAULT_ON) and logic. |
Beta Was this translation helpful? Give feedback.
-
|
Whilst I contribute a bunch of the official code, I find it simpler to run my own config for reasons like this. Sorts out the issue you raised, whilst using improved v3 webserver and adding sensors for energy that make sense (i.e. have a timescale associated with them, saving having to use utility_meter to do so in HomeAssistant). If you like and want to customise, run your own version, then just copy my repo or the files (base config, components and associated files pulled by): https://github.com/Roving-Ronin/myHomeAssistant/blob/main/esphome/athom-smart-plug-v2.yaml |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
-
@athom-tech @tarontop
Aiden,
Just looking at the power_mode selector option that was added to the plugs and reviewing against prior code.
I note that this code;
that calls the subsitute:
Is still in the yaml. Wouldn't this code conflict (or at least see two different settings trying to do the same thing) with:
???
Beta Was this translation helpful? Give feedback.
All reactions