


#Manually add opensprinkler code
I only have so much time to play around with the design, and welcome any contribution, whether code or Figma link or pencil sketch, to make the card more accessible, consistent, prettier, or whatever you strive for. You may find other details like the duration input and extra_entities to appear like goblin heads grafted onto puppies. You may find some details, such as loading icons, the run-once program entry, and the layout of the card in its default configuration to be tastefully designed. You can still access entity details by clicking on the station icon (yup, that's not very obvious.

The ids of program running binary sensors end with _running.The ids of station status sensors end with _status.If you haven't changed these, you have nothing to worry about. This card locates your OpenSprinkler entities by using their entity ids. You can also set popup_line_height, timer_line_height, and card_line_height to control the spacing of entities. See the default config for an example.įinding device ids is tricky, so I recommend using the dropdown in the visual card editor to set device rather than YAML. If true, hide disabled stations and programs in the popup If true, hide the 3 dots appearing next to entities Options Nameĭevice id of the OpenSprinkler in Home AssistantĬonfiguration for run-duration-choosing entity
#Manually add opensprinkler manual
If you don't have HACS installed, follow the manual installation instructions. OpenSprinkler Card is available from HACS (search for "opensprinkler card"). You will need the OpenSprinkler integration installed. OpenSprinkler status into a card for Home Assistant. Originally: def _setattr_(self, name, value): The actual problem had been omitted from the example and was that I had chosen to override the setattr method without allowing parent to be set. Any idea what's going on here?Īs Alec pointed out, the code example actually does work. The output confirm that the constructor for the member was called: > c = openSprinkler.OpenSprinkler('foo','bar')īut when I look at the members, cv.parent does not appear to exist: > dir(c.cv)Ĭv.my_args contains the extended list. Self.my_args.extend(self.my_longhand.keys())ĭef _init_(self, hostname, password, log=None): I have a constructor which creates a member object of a sub-class: class OpenSprinkler:
