Put television out with fibaro button

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 ?

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.

ok, thanks for the fast reply

Where did you get that entity id btw?

media_player.viera_dt60_series is probably better

Yep that looks more like it :slight_smile:

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/

Can you post the config please?

Well you can’t have automation: specified twice, just put all automations under the one automation:

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

the word “automation” is not nescesserry I think ?

1 Like

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

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

- 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

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]

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

Yes, you can put to 5 actions on it. Where can I see the event name ?

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.

Thanks keith. It’s a shame it’s not supported. Damm :frowning:

Try it anyway it maybe that it’s a different version or that it’s a different function that’s not supported.

- 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 …