@TheStigh wrote:
Too much inside my head these days supplying medical equipment domestically, but trying to relax working on the coolest hobby there is
I’ve done this in the past (but deleted it in later on), but can’t get it to work now.
Created an
input_boolean
q70r_on_off: name: Q70R Av På initial: off icon: mdi:television-classic
Then created the switch template
- platform: template switches: q70r_on_off: friendly_name: Samsung Q70R Status value_template: "{{ is_state('input_boolean.q70r_on_off') }}" turn_on: - service: script.q70r_skru_paa - service: input_boolean.turn_on entity_id: input_boolean.q70r_on_off turn_off: - service: script.q70r_skru_av - service: input_boolean.turn_off entity_id: input_boolean.q70r_on_off
Then adding adding it to a
button-card
Though, it kind of works ONE time, then it stops. To debug, I went backwards using dev-tools and tested by executing the script - works perfect every time.
Then I tried to test theswitch.q70r_on_off
but it kind of turn on for a few seconds and turns off again and script is not activated.And noticed I get these repeatedly in the log now
Posts: 4
Participants: 2