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

Glance: I want scene.turn_on on click but

$
0
0

@GiulioG wrote:

After a lot of test i make this working code

entities:
  - entity: scene.xxxxx
    icon: 'mdi:power'
    name: 'ON'
    tap_action:
      action: call-service
      service: scene.turn_on
      service_data:
        entity_id: scene.xxxxx
show_state: false
title: Aromaterapia
type: glance

but i have this error on the configuration window

Expected a value of type `{entity,name,icon} | entity-id` for `entities.0.tap_action` but received `{"action":"call-service","service":"scene.turn_on","service_data":{"entity_id":"scene.xxxxx"}}`.

Now it works!!! but i don’t like dirty code!

Anyone can suggest to me how have the same result without the error?

Very thanks

Posts: 4

Participants: 3

Read full topic


Viewing all articles
Browse latest Browse all 95390

Trending Articles



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