In my home, I’ve managed all the AC systems through Home Assistant, so I don’t have an external thermostat.
I’m using a generic thermostat helper, and what I’m trying to implement is an automation that every time I change the climate state from “off” to “heat”, asks me if I want to set a timer, and if so, allows me to set the timer duration and use that timer to turn off the AC.
At the moment, I’m not able to show a prompt every time I change the state of the climate entity that asks for confirmation and duration.
alias: AC Timer Popup Confirmation
description: ""
triggers:
- entity_id: climate.testtest
from: "off"
to: heat
trigger: state
actions:
- data:
target: THIS
dismissable: false
title: Vuoi impostare un Timer?
right_button: IMPOSTA
right_button_action:
service: timer.start
data:
entity_id: timer.ac_heating_timer
left_button: "NO"
left_button_action:
service: browser_mod.close_popup
data:
browser_id: THIS
content:
- name: duration
label: Durata
default: "30:00"
selector:
select:
multiple: false
options:
- label: 15 Minuti
value: "15:00"
- label: 30 Minuti
value: "30:00"
- label: 60 Minuti
value: "60:00"
action: browser_mod.popup
and now i’m able to set the timer but i’ve some problem whit the popup close.
Using the browser mod popup in a script i’m not able to manage the popup only on the specific browser_id so the popup is displayed on all device, this is not a problem but after i close the popup it remain open on the other device