Faecon
(Jo)
February 15, 2018, 9:25am
1
I am new to HA . So I want to start with something easy I thought…
I want to put the television out with the fibaro button.
I tried this code
automation:
alias: Druk Zwarte knop
trigger:
platform: event
entity_id: sensor.fibaro_system_fgpb101_button_general
action:
service: media_player.turn_off
entity_id : VIERA DT60 Series (media_player)
What is wrong ?
keithh666
(Keith Hull)
February 15, 2018, 9:33am
2
The above is not a valid entity id, check the states page <> in the HA left menu. It has to be all lowercase and spaces replaced with _ and you can’t have brackets either. Please format the code for the forum by pasting it leaving a blank line above and below it then selecting it and clicking the </> button at the top of the edit box.
Faecon
(Jo)
February 15, 2018, 9:35am
3
ok, thanks for the fast reply
keithh666
(Keith Hull)
February 15, 2018, 9:36am
4
Where did you get that entity id btw?
Faecon
(Jo)
February 15, 2018, 9:44am
6
media_player.viera_dt60_series
is probably better
keithh666
(Keith Hull)
February 15, 2018, 9:46am
7
Yep that looks more like it
Faecon
(Jo)
February 15, 2018, 9:48am
8
I still get a failed config
automation: automation: [source /config/automations.yaml:1] - action: [source /config/automations.yaml:6] entity_id: media_player.viera_dt60_series service: media_player.turn_off alias: Druk Zwarte knop trigger: [source /config/automations.yaml:3] platform: event entity_id: sensor.fibaro_system_fgpb101_button_general
and this looks also not OK
2018-02-15 09:45:49 ERROR (MainThread) [homeassistant.config] Invalid config for [automation]: [automation] is an invalid option for [automation]. Check: automation->automation. (See /config/configuration.yaml, line 83). Please check the docs at https://home-assistant.io/components/automation/
keithh666
(Keith Hull)
February 15, 2018, 9:53am
9
Can you post the config please?
Well you can’t have automation: specified twice, just put all automations under the one automation:
Faecon
(Jo)
February 15, 2018, 10:14am
10
in the config file is this : automation: !include automations.yaml
and this in the automation file
automation:
- alias: Druk Zwarte knop
trigger:
platform: event
entity_id: sensor.fibaro_system_fgpb101_button_general
action:
service: media_player.turn_off
entity_id : media_player.viera_dt60_series
Faecon
(Jo)
February 15, 2018, 10:24am
11
the word “automation” is not nescesserry I think ?
1 Like
Sthope
(Sthope)
February 15, 2018, 10:37am
12
Yes, just remove automation:
and should be good
- alias: Druk Zwarte knop
trigger:
platform: event
entity_id: sensor.fibaro_system_fgpb101_button_general
action:
service: media_player.turn_off
entity_id : media_player.viera_dt60_series
Faecon
(Jo)
February 15, 2018, 10:56am
13
in the config log I still get errors…
[homeassistant.config] Invalid config for [automation]: [entity_id] is an invalid option for [automation]. Check: automation->trigger->0->entity_id
Sthope
(Sthope)
February 15, 2018, 10:58am
14
- alias: Druk Zwarte knop
trigger:
platform: event
entity_id: sensor.fibaro_system_fgpb101_button_general
action:
service: media_player.turn_off
entity_id: media_player.viera_dt60_series
Faecon
(Jo)
February 15, 2018, 9:41pm
15
I changed the entity_id :
to entity_id:
but still the samen errors
Invalid config for [automation]: [entity_id] is an invalid option for [automation]
keithh666
(Keith Hull)
February 15, 2018, 11:59pm
16
Does the button use events? If it does do you need to specify what the event is? Single click, double click, long press etc. For instance my only device that uses events does it like so…
trigger:
- platform: event
event_type: cube_action
event_data:
entity_id: binary_sensor.cube_158d000117d706
action_type: tap_twice
Faecon
(Jo)
February 16, 2018, 8:37am
17
Yes, you can put to 5 actions on it. Where can I see the event name ?
keithh666
(Keith Hull)
February 16, 2018, 11:39am
18
Well I would think that event_type: would be - click and the action_type: would be - single or perhaps single_click.
Doing a search it seems that the Fibaro Button is not currently supported by HA so you may not get it working.
Faecon
(Jo)
February 17, 2018, 9:55am
19
Thanks keith. It’s a shame it’s not supported. Damm
keithh666
(Keith Hull)
February 17, 2018, 5:07pm
20
Try it anyway it maybe that it’s a different version or that it’s a different function that’s not supported.
Faecon
(Jo)
February 19, 2018, 4:35pm
21
- alias: Druk Zwarte knop
hide_entity: true
trigger:
event_type: zwave.scene_activated
platform: event
event_data:
entity_id: zwave.zwarte_knop_4
scene_id: 1
scene_data: 7680
action:
service: media_player.turn_off
entity_id: media_player.viera_dt60_series
This is the code now… It gives not errors, but it isn’t working …