Help creating a switch from a cover (Fibaro FGRM-222)

Hi guys,

i’ve various Qubinto and Fibaro Z-wave node to control my roller shutter. The fist one expose a switch that are “On” when the cover is open and “Off” when the cover is closed while the second one don’t have this function.

I want to create a switch, that call service “open” and “close” and use these switches from Google Home.

I’ve tried to use a “switch template” and then expose as switch to Google Home but without success:

switch:
  - platform: template
    switches:
      tapparelle_salone:
        value_template: "{{ is_state('cover.qubino_zmnhcdx_flush_shutter_level_3', 'on') }}"
        turn_on:
          service: cover.open_cover
          data:
            entity_id: cover.qubino_zmnhcdx_flush_shutter_level_3
        turn_off:
          service: cover.close_cover
          data:
            entity_id: cover.qubino_zmnhcdx_flush_shutter_level_3

this test doesn’t work.

Do you have any hints?
Thanks!

Can you elaborate on “doesn’t work”? Do you get errors, and if so, what are they? Does it not show the correct state? You can’t open and close the roller shutter? …?

Assuming the issue is that it’s not showing the correct state, what do you get if you put the template in the template editor?

Assuming the issue is you can’t open and close the roller shutter, have you tried invoking those services from the service page?