panhans / HomeAssistant

Home Asisstant related stuff like blueprints for automations and scripts.
101 stars 28 forks source link

AHC: Guest mode not working? #63

Closed MattiaPette closed 8 months ago

MattiaPette commented 8 months ago

Hi Is guest mode not working? When i'm away I manually enable the guest mode if someone needs to go to my house, when testing the temperature target does not change from 18 to 20.5 (my eco and comfort temps) like it does when I'm home. Reading the guest mode description I understood that it would emulate a person beeing home so the target should increase to the comfort zone, am I understanding this correctly?

My full automation setting:

alias: 🔥 Bedroom AHC
description: ""
use_blueprint:
  path: panhans/heating_control.yaml
  input:
    input_trvs:
      - climate.bedroom_thermostat
    input_temperature_minimum: input_number.eco_temp_camera
    input_temperature_comfort: input_number.comfort_temp_camera
    input_persons:
      - person.mattia
    input_mode_guest: input_boolean.guest_mode_toggle
    input_windows:
      - binary_sensor.bedroom_balcony_door
      - binary_sensor.bedroom_window_door
    input_temperature_sensor: sensor.bedroom_temp1
    input_calibration_timeout:
      hours: 0
      minutes: 0
      seconds: 30
    input_calibration_delta: 0.1
    input_mode_winter: input_boolean.enable_bedroom_heating
panhans commented 8 months ago

Hi, thanks for your report.

I've tested your configuration it in my testing environment and everything worked as expected. Could you set the debug level in blueprint settings to warning? Then enable the guest mode again and wait until the automation got triggered. Click on your automation, traces in the upper right corner and download and share the trace log, please.

MattiaPette commented 8 months ago

trace automation.bedroom_ahc 2024-03-27T09_54_54.377181+00_00.json

Please be aware that I've manually replaced the names of the sensors and inputs for privacy sake as some names contains informations that I do not want to share. You should still be able to consult the file correctly. Thanks

panhans commented 8 months ago

I think I got the bug and pushed recently an update in the dev version. I think I will merge it into the main branch/version later this day. If you want to test it out here you are.

MattiaPette commented 8 months ago

Sure, let met try switching to the dev blueprint. I'll report in a bit.

MattiaPette commented 8 months ago

The dev works great with my configuration! If you are going to merge the dev branch in the main one I've opened a quick PR about a minor spelling mistake I've found. Thanks for your work!