Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 105903

Need help creating scene switch

$
0
0

Hello,

I recently installed the Pentair Intellicenter custom integration through HACS. Unfortunately, my feature groups do not pull through, so I have attempted to circumvent that drawback by using scenes. I created the following 4 scenes:

  • Waterfall On
  • Waterfall Off
  • Waterslide On
  • Waterslide Off

Basically, the Waterfall On scene turns on certain entities, and the Waterfall Off scene turns off those same entities. I have a little more investigating I have to do with scenes though as the Waterfall On and Waterslide On scenes double-up on a couple of entities, so would like to make it so that the scenes work nicely together, but that is a future task as they otherwise serve their current functions.

I created a template switch, but it is a switch with separate buttons. I would like to create a switch that works like a typical entity switch with color changing states, if that is possible.

My current switches.yaml

#toggle switch for Waterfall Scene
- platform: template
  switches:
    waterfall_scene_switch: 
      turn_on:
        service: scene.turn_on
        entity_id: scene.waterfall_on
      turn_off:
        service: scene.turn_on
        entity_id: scene.waterfall_off
          
#toggle switch for Waterslide Scene
- platform: template
  switches:
    waterslide_scene_switch: 
      turn_on:
        service: scene.turn_on
        entity_id: scene.waterslide_on
      turn_off:
        service: scene.turn_on
        entity_id: scene.waterslide_off

This results in these switches (Under Water Feature Switches) instead of something that looks like any of the other entity switches in the screenshot.

The main reason for doing that is so I can use a more compact card like the custom Room Card for certain dashboards.

I appreciate any help.

1 post - 1 participant

Read full topic


Viewing all articles
Browse latest Browse all 105903

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>