presence_simulation icon indicating copy to clipboard operation
presence_simulation copied to clipboard

Not being able to reconfigure the presence simulation entity

Open tangobones opened this issue 8 months ago • 6 comments

When trying to reconfigure the entity throught the "Configure button" in the integration page on Home Assistant. I'm not able to exclude entities that I don't want the presence simulation to control anymore.

After excluding the entities badges and clicking Submit, nothing happens.

Core 2025.2.5 Supervisor 2025.03.0 Operating System 14.2 Frontend 20250221.0

tangobones avatar Mar 05 '25 21:03 tangobones

look at my issue, you might have the same problem

https://github.com/slashback100/presence_simulation/issues/161

3dfan avatar Mar 09 '25 12:03 3dfan

I tried to remove an entity but didn't encounter any issue. Could you activate debug level, retry to remove the entity and share your log?

slashback100 avatar Mar 11 '25 20:03 slashback100

See the logs:

2025-03-18 12:48:39.535 WARNING (MainThread) [homeassistant.helpers.frame] Detected that custom integration 'presence_simulation' sets option flow config_entry explicitly, which is deprecated at custom_components/presence_simulation/config_flow.py, line 73: self.config_entry = config_entry. This will stop working in Home Assistant 2025.12, please create a bug report at https://github.com/slashback100/presence_simulation/issues 2025-03-18 12:48:39.536 DEBUG (MainThread) [custom_components.presence_simulation.config_flow] config flow init None 2025-03-18 12:48:39.539 DEBUG (MainThread) [custom_components.presence_simulation.config_flow] switch Presença Simulada 2025-03-18 12:48:39.539 DEBUG (MainThread) [custom_components.presence_simulation.config_flow] config_entry data {'brightness': 100, 'delta': 7, 'entities': 'light.living_sanca,light.dining_sanca,light.suite_2_pendente_noframe_switch,light.suite_2_pendente_noframe_switch_2,light.corredor_principal_balizador_switch,light.corredor_principal_balizador_switch_2,light.living_hall_switch,light.living_lavabo_switch,light.suite_1_closet_switch,light.suite_1_spot_pendente_switch,light.suite_1_spot_pendente_switch_2,light.suite_1_banho_box_switch,light.suite_1_banho_espelho_switch,light.suite_1_banho_teto_switch,light.suite_2_spot_cama_sanca_switch,light.suite_2_spot_cama_sanca_switch_2,light.suite_2_banho_espelho_switch,light.suite_2_banho_principal_nicho_box_switch,light.suite_2_banho_principal_nicho_box_switch_2,light.suite_master_closet_cabeceira_switch,light.suite_master_closet_cabeceira_switch_2,light.suite_master_sanca_switch,light.suite_master_spot_pendente_switch,light.suite_master_spot_pendente_switch_2,light.suite_master_banho_espelho_switch,light.suite_master_banho_teto_box_switch,light.suite_master_banho_teto_box_switch_2,light.kitchen_cristaleira_switch,light.kitchen_pia_ilha_switch,light.kitchen_pia_ilha_switch_2,light.kitchen_teto_frente_spot_ilha_switch,light.kitchen_teto_frente_spot_ilha_switch_2,light.kitchen_teto_fundo_switch,light.laundry_banheiro_switch,light.laundry_lavanderia_hall_switch,light.laundry_lavanderia_hall_switch_2,light.laundry_quarto_switch,light.office_spot_switch,light.office_prateleira_sanca_switch,light.office_prateleira_sanca_switch_2,cover.all_living_blind,cover.office_blind,cover.master_suite_blind,cover.suite1_blind,cover.suite2closet_blind', 'interval': 30, 'random': 59, 'restore': True, 'switch': 'Presença Simulada', 'unavailable_as_off': True} 2025-03-18 12:48:39.539 DEBUG (MainThread) [custom_components.presence_simulation.config_flow] will async_show_form

This is the logs after clicking on "Configure" in the integration page - http://homeassistant.local:8123/config/integrations/integration/presence_simulation - and click the "X" on two entities names (light.corredor_principal_balizador_switch, light.corredor_principal_balizador_switch_2) and scrolling down and clicking "Submit"

It seems like the Submit button is ignoring changes made to the config in the UI config pipeline, because even though the entities are excluded after clicking the "X", when I click the submit, the window flashes, but not closes and the entities still deleted on the list.

Before deleting entities: Image

After deleting entities: Image

After clicking submit: Image

Is the a way to configure this integration with YAML instead of UI?

tangobones avatar Mar 18 '25 15:03 tangobones

Hmm very strange... We see nothing special in the log. No, the only way is to use the UI... A workaround would be to re-create your simulation entity...

slashback100 avatar Mar 27 '25 21:03 slashback100

Bei mir besteht offensichtlich das gleiche Problem. Ich bekomme folgende Meldungen im Protokoll

=> Logger: homeassistant.helpers.frame Quelle: helpers/frame.py:324 Erstmals aufgetreten: 07:37:20 (1 Vorkommnisse) Zuletzt protokolliert: 07:37:20

Detected that custom integration 'presence_simulation' sets option flow config_entry explicitly, which is deprecated at custom_components/presence_simulation/config_flow.py, line 77: self.config_entry = config_entry. This will stop working in Home Assistant 2025.12, please create a bug report at https://github.com/slashback100/presence_simulation/issues

IOGogo avatar Mar 31 '25 05:03 IOGogo

This message is only a warning. It will be a problem from 2025.12 only. It will not affect the component behaviour.

slashback100 avatar Mar 31 '25 09:03 slashback100