When I write a schedule and automation in one package, automation is not available. When I make separate files automation and schedule then everything works. Where is my error in the package? Thanks .
termostat_bedroom:
schedule:
thermostat_bedroom_schedule:
name: "Thermostat bedroom schedule"
monday:
- from: "17:00:00"
to: "21:00:00"
tuesday:
- from: "17:00:00"
to: "21:00:00"
wednesday:
- from: "17:00:00"
to: "21:00:00"
thursday:
- from: "17:00:00"
to: "21:00:00"
friday:
- from: "17:00:00"
to: "23:00:00"
saturday:
- from: "07:00:00"
to: "10:00:00"
- from: "16:00:00"
to: "23:00:00"
sunday:
- from: "20:00:00"
to: "21:00:00"
automation:
- id: ΠΠ²ΡΠΎΠΌΠ°ΡΠΈΡΠ½Π΅ Π²ΠΌΠΈΠΊΠ°Π½Π½Ρ ΡΠ΅ΡΠΌΠΎΡΡΠ°ΡΡ
alias: auto_turn_termostat_bedroom
trigger:
- platform: state
entity_id:
- schedule.thermostat_bedroom_schedule
from: "off"
to: "on"
condition: []
action:
- device_id: ae91603bbba5c7e6e279a3ddc3d9d951
domain: climate
entity_id: 06512f31a1c94e8f251633a6e2bd0308
type: set_hvac_mode
hvac_mode: auto
mode: singl
If you used the !include_dir_named method and not !include_dir_merge_named you donβt need the package name in the package. Get rid of this and move everything else 2 spaces left.
You need to start copying text from your system log instead of posting screenshots. It makes it more difficult to help you. There is a button provided to help you do that.
Edit: In all fairness, that button is probably new to you.
Anyway, you have the mode parameter spelled incorrectly in automation.auto_turn_thermostat_bedroom_on. You are missing the βeβ. It tells you that right in your screenshot.
So back to the original issue in this thread, how did you get that resolved? I am curious because if you used the unavailable entities package we were discussing in the other thread, it should not have worked if you are using the !include include_dir_merge_named method for packages unless you added a package name and changed the indentation.
i use " packages: !include_dir_merge_named includes/packages" and in my packedge i use name . Since at the beginning of my topic. I have all packages with the name all work .
In the package with βunavailable_entitiesIβ i added the name to the beginning