@Per_Ahlgren wrote:
Hi,
In this example i use a lamp state as a trigger. What and i want is to start a spotify playlist at a chromecast audio named media_player.bad_overvaning_musik. When I run this nothing happens. (log below)- id: '1574448862466' alias: 'when light turned on play music to spotify playlist to ' description: '' trigger: - device_id: 05e7bf5591894cce957ded5641e02c15 domain: light entity_id: light.vardagsrum_watt_weke platform: device type: turned_on condition: [] action: - alias: '' data: entity_id: media_player.bad_overvaning_musik media_content_id: spotify:user:spotify_user:playlist:4Mm14OcrRVHKp7U2zpDp4j media_content_type: playlist service: media_player.media_play
2019-11-22 19:57:18 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: [data] is an invalid option for [automation]. Check: automation->action->0->data. (See /config/configuration.yaml, line 16). Please check the docs at https://home-assistant.io/integrations/automation/
2019-11-22 19:57:18 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: [data] is an invalid option for [automation]. Check: automation->action->0->data. (See /config/configuration.yaml, line 16). Please check the docs at https://home-assistant.io/integrations/automation/
2019-11-22 19:57:31 ERROR (MainThread) [homeassistant.components.automation] Error while executing automation automation.when_light_turned_on_play_music_to_spotify_playlist_to. Invalid data for call_service at pos 1: extra keys not allowed @ data[‘media_content_id’]
2019-11-22 19:58:10 ERROR (MainThread) [homeassistant.components.automation] Error while executing automation automation.when_light_turned_on_play_music_to_spotify_playlist_to. Invalid data for call_service at pos 1: extra keys not allowed @ data[‘media_content_id’]
2019-11-22 19:58:15 ERROR (MainThread) [homeassistant.components.automation] Error while executing automation automation.when_light_turned_on_play_music_to_spotify_playlist_to. Invalid data for call_service at pos 1: extra keys not allowed @ data[‘media_content_id’]
2019-11-22 19:59:01 ERROR (MainThread) [homeassistant.components.automation] Error while executing automation automation.when_light_turned_on_play_music_to_spotify_playlist_to. Invalid data for call_service at pos 1: extra keys not allowed @ data[‘media_content_id’]
Posts: 3
Participants: 2