I designed this 7-day programmer for central heating. Nice easy way to set an On and Off time, then have this applied to days of the week by tapping a button for the day - to toggle on/off. In the screenshot I have enabled Wednesday and some random on/off time. All works but I have a coding/config question.
This is the HA configuration yaml file:
hvac_control_programmer:
input_datetime:
programmer_1_on:
name: programmer_1_on
has_date: false
has_time: true
programmer_1_off:
name: programmer_1_off
has_date: false
has_time: true
input_boolean:
programmer_1_monday:
name: programmer_1_monday
programmer_1_tuesday:
name: programmer_1_tuesday
programmer_1_wednesday:
name: programmer_1_wednesday
programmer_1_thursday:
name: programmer_1_thursday
programmer_1_friday:
name: programmer_1_friday
programmer_1_saturday:
name: programmer_1_saturday
programmer_1_sunday:
name: programmer_1_sunday
Question I have, is whether there is any way to manipulate arrays when using cards. As can be seen, I have programmer_1_ prefix. This is for the first card. If I want another 7-day schedule in addition to the first, I can just add another card to my dashboard view. Cool! but then I have to add another set of entities for the 2nd set , as in programmer_2_ etc.
Any way to do this - i could resort to custom addon in python and a card - but before I start learning the languages , I’d like to know if the core HA system can deal with arrays() ? Plus, i also want my heating schedule to work now 'cos it’s freezing in the mornings here .