GPIO Cover: how to show state?

Using Raspberry Pi GPIO Cover with basic installation. Relay and sensor work correctly with:

cover:
  - platform: rpi_gpio
    relay_time: 1
    state_pull_mode: 'DOWN'
    covers:
      - relay_pin: 10
        state_pin: 11
        name: 'Gate'

And this is what I get:

cover

I’ve been trying for hours to be able to show the Gate status according to the sensor info, to no avail. Any help, please? Ideally, this is what I’d love to see:

cover_garadget_details

Thanks!

After hours of tinkering, I’ll answer myself. This is what I used:

sensor:
  - platform: template
    sensors:
      garage_door:
        value_template: '{{ states.cover.gate.state }}'
        friendly_name: 'Garage Door State'
      garage_door_time:
        value_template: '{{ states.cover.gate.last_changed.strftime("%b %d, %H:%M") }}'
        friendly_name: 'Since'

And this is what I get:

gate

…which exactly what I wanted.

Now, if anybody can help me with this: The time shown in “Since” is 2 hours behind the local time. But if I look at the Logbook, the log entries have all the correct time, as defined in time_zone: Any ideas why?

Can you get your circuit digram ?
please