I have these two entities in lovelace ui called remote.living_room and remote.downstairs, they work fine in non-loevlace, but in ui-lovelace, i am getting this error
Error when i click on my entity:
No activity specified with turn_on service
6:28 PM components/remote/harmony.py (ERROR)
lovelace.yaml file:
resources:
- url: /local/custom-lovelace/upcoming-media-card/upcoming-media-card.js?v=0.2.2
type: js
- url: /local/custom_ui/ecobee-card.js
type: js
- url: /local/card-modder.js
type: module
- url: /local/custom_ui/weather-card.js
type: js
- url: /local/custom_ui/layout-card.js
type: js
- url: /local/custom_ui/dark-sky-weather-card.js
type: module
- url: /local/custom_ui/layout-card.js
type: js
name: Test
views:
- id: 0
title: Home
panel: true
cards:
- type: custom:layout-card
layout: vertical
cards:
- type: entities
title: Receiver's
entities:
- remote.living_room
- remote.downstairs
- break
- type: entities
title: Forecast
entities:
- type: custom:weather-card
entity_weather: weather.yweather
entity_sun: sun.sun
this is my switches.yaml file in /includes folder, do i need to reference this in my ui-lovelace?
- platform: template
switches:
# Music activity Upstairs
receiver_upstairs:
friendly_name: "Receiver Upstairs"
value_template: "{{ is_state_attr('remote.living_room', 'current_activity', 'Listen to Music') }}"
turn_on:
service: remote.turn_on
data:
entity_id: remote.living_room
activity: '35877246'
turn_off:
service: remote.turn_on
data:
entity_id: remote.living_room
activity: 'PowerOff'
# Music activity
receiver_downstairs:
friendly_name: "Receiver Downstairs"
value_template: "{{ is_state_attr('remote.downstairs', 'current_activity', 'Listen to Music') }}"
turn_on:
service: remote.turn_on
data:
entity_id: remote.downstairs
activity: '35561135'
turn_off:
service: remote.turn_on
data:
entity_id: remote.downstairs
activity: 'PowerOff'