Hi all. I have a Fibaro FGM-222 rollershutter and I would like to control it with a Xiaomi wireless switch.
The easiest way would be if there is a cover.toggle like a switch.toggle.
Because its not there i want to do it with 3 automations.
If WirelessSwitch = click
condition: rollershutter current_position = 0 (means its closed)
than: cover.open
The problem is the condition: How can i check the current_position?
Right now i have this:
- action:
- data:
entity_id: cover.fibaro_system_fgrm222_roller_shutter_controller_2_level_2
service: cover.open_cover
alias: Rollladen ist zu 0
condition: []
id: '1516293164675'
trigger:
- event_data:
click_type: single
entity_id: binary_sensor.switch_158d00012433dc
event_type: click
platform: event