Closed mihlit closed 3 years ago
Hi,
That's no bug so far. The generic2 actor type (or switch, which is just a preconfigured generic2) works with lists internally, and you normally shouldn't deal with the schedy_room entities directly.
The problem here is that you seem to have a wrong notion of actors. A binary sensor can't be an actor. An actor is something Schedy controls. In case of the switch type, it needs to be something that's controllable by the homeassistant.turn_on/turn_off services, so you could use an input_boolean instead and drop the template sensor part altogether. Then, the input_boolean will be switched on and off according to your schedule and you can react to it as you like.
Closing this as it's not a bug. Feel free to keep commenting if something is still unclear.
Best regards Robert
So, state is for internal use only, it is not supported and should not be used?
I know it's not exactly correct solution but it works :) I did not find any solution I liked as I want to show state in dashboard. If I add schedy state to dashboard it shows '["on"]' which does not look nice. I can't use input_* as it can't be made read-only in dashboard and it would not make sense from UIX perspective. Previously I had it wrapped with hidden input_boolean and template sensor that shows it, but was wondering if I can do it with two items instead of three.
Hi,
I'm trying to use schedy with template binary_sensor (holds information if cheaper electricity tariff is active based on time schedule). It works, but schedy does not return simple "on" / "off" states. It gives '["on"]' / '["off"]' states, so I have to use unusual checks like is_state(..., '[\"on\"]' instead of just 'on'. I've checked my configuration and documentation and it seems it could be bug?
Similar, when I add that entity into dashboard, it shows ["on"], or in rest api:
My configuration> apps/schedy_hdo.yaml
configuration sensor part>