#Dashboard Fan

1 messages · Page 1 of 1 (latest)

jagged onyx
#

Hey everyone. I’m just looking for a little direction on how to make my fan look nicer on my dashboard. It’s a dumb RF card that I control with a RMpro and at the moment I have a script for all these.

  • Fan On
  • Fan Off
  • Power 1
  • Power 2
  • Power 3
  • Power 4
  • Power 5
  • Reverse
  • Light On
  • Light Off

Whilst my goal is to get all this working so I might have to come back here as I get stuck, for now in only trying to add a button to toggle the fan light which has two separate scripts for on and off.

I created a helper “Light” which I need to add the scripts to but I can’t work it out. I’ve tried automations and adding the scripts to a button directly but can’t get anywhere.

I’ve tried to Google but I’m not sure what I’m doing so aren’t sure what to Google.

Am I supposed to be creating an automation/script/card next?

I’m not even sure I need the scripts I created.. maybe I can just add the commands directly to somewhere else..?

#

This is what the script does.

jagged onyx
#

Ok I found the If building block which makes sense.
I also can see I can show it in yaml which I don’t want to use, but probably makes sense for anyone who might help me.,

alias: "My light automation "
description: ""
trigger:

  • platform: state
    entity_id:
    • input_boolean.my_light
      condition: []
      action:
  • if:
    • condition: state
      entity_id: input_boolean.my_light
      state: "on"
      then:
    • service: remote.send_command
      data:
      device: my_light
      command: power_off
  • if:
    • condition: state
      entity_id: input_boolean.my_light
      state: "off"
      then:
    • service: remote.send_command
      data:
      device: my_light
      command: power_on
      mode: single