OK, that’s something to worry about next week then
In the mean time, my apps.yaml now contains
schedule_snippets:
downstairs_winter_default:
- { weekdays: 1-5, start: "06:00", end: "08:30", temp: 23 }
- { weekdays: 1-5, start: "08:30", end: "16.30", temp: 21 }
- { weekdays: 1-5, start: "08:30", end: "16:30", temp: "Add(2) if app.get_state('input_boolean.janeathome') == 'on' else Ignore()" }
- { weekdays: 1-5, start: "16:30", end: "22:00", temp: 23 }
- { weekdays: 1-5, start: "00:00", end: "00:00", end_plus_days: 1, temp: 18 }
- { weekdays: 6, start: "06:00", end: "10:30", temp: 23 }
- { weekdays: 6, start: "08:30", end: "16.30", temp: 21 }
- { weekdays: 6, start: "08:30", end: "16:30", temp: "Add(2) if app.get_state('input_boolean.janeathome') == 'on' else Ignore()" }
- { weekdays: 6, start: "16:30", end: "22:00", temp: 23 }
- { weekdays: 6, start: "00:00", end: "00:00", end_plus_days: 1, temp: 18 }
- { weekdays: 7, start: "06:00", end: "22:00", temp: 23 }
- { weekdays: 7, start: "00:00", end: "00:00", end_plus_days: 1, temp: 18 }
rooms:
downstairs:
friendly_name: Downstairs
# thermostats:
# climate.downstairs_heating:
schedule:
- temp: IncludeSchedule(schedule_snippets["downstairs_winter_default"])
but I am getting the following error (which seems to indicate a probelm with ‘end’?)
2018-02-02 11:24:23.275814 WARNING ------------------------------------------------------------
2018-02-02 11:24:23.276412 WARNING Unexpected error:
2018-02-02 11:24:23.277435 WARNING ------------------------------------------------------------
2018-02-02 11:24:23.279775 WARNING Traceback (most recent call last):
File "/usr/local/lib/python3.5/dist-packages/appdaemon/appdaemon.py", line 837, in check_config
new_config[name]["module"], new_config[name]
File "/usr/local/lib/python3.5/dist-packages/appdaemon/appdaemon.py", line 583, in init_object
conf.objects[name]["object"].initialize()
File "/usr/local/lib/python3.5/dist-packages/hass_apps/common.py", line 44, in initialize
self.cfg = self.Meta.config_schema(self.args)
File "/usr/local/lib/python3.5/dist-packages/voluptuous/schema_builder.py", line 221, in __call__
return self._compiled([], data)
File "/usr/local/lib/python3.5/dist-packages/voluptuous/schema_builder.py", line 716, in validate_callable
return schema(data)
File "/usr/local/lib/python3.5/dist-packages/voluptuous/validators.py", line 264, in __call__
raise e if self.msg is None else AllInvalid(self.msg)
File "/usr/local/lib/python3.5/dist-packages/voluptuous/validators.py", line 262, in __call__
v = schema(v)
File "/usr/local/lib/python3.5/dist-packages/voluptuous/schema_builder.py", line 221, in __call__
return self._compiled([], data)
File "/usr/local/lib/python3.5/dist-packages/voluptuous/schema_builder.py", line 716, in validate_callable
return schema(data)
File "/usr/local/lib/python3.5/dist-packages/voluptuous/schema_builder.py", line 221, in __call__
return self._compiled([], data)
File "/usr/local/lib/python3.5/dist-packages/voluptuous/schema_builder.py", line 538, in validate_dict
return base_validate(path, iteritems(data), out)
File "/usr/local/lib/python3.5/dist-packages/voluptuous/schema_builder.py", line 370, in validate_mapping
raise er.MultipleInvalid(errors)
voluptuous.error.MultipleInvalid: does not match regular expression for dictionary value @ data['schedule_snippets']['downstairs_winter_default'][1]['end']
2018-02-02 11:24:23.280420 WARNING ------------------------------------------------------------
Any thoughts?