Easy cover , not working cos i need timebase

hello ,

i created a cover , in my config.yaml
and i got this error :

Ongeldige configuratie!
 Platform error cover.time_based - Integration 'time_based' not found. 
cover:
 
  - platform: time_based
    name: "Time-Based Cover"

    open_action:
      #- switch.turn_on: open_cover_switch
      - http_request.get: "http://192.168.1.2:80/postEvent.html?action=input&STM=0&MOD=3&CHA=3&EVT=2"
    open_duration: 2.1min

    close_action:
      #- switch.turn_on: close_cover_switch
      - http_request.get: "http://192.168.1.2:80/postEvent.html?action=input&STM=0&MOD=3&CHA=2&EVT=2"
    close_duration: 2min

    stop_action:
      #- switch.turn_off: open_cover_switch
      #- switch.turn_off: close_cover_switch

where can i find timebased plugin ?

thx

source : Time Based Cover ā€” ESPHome

HA and ESPHome are 2 different products.

I guess you want

och thanks a lot
it works partially:

the issue now is , i need to find a system so the http.request can be executed

can u point me in the ditection to get this work : ?

Ongeldige configuratie!
 Invalid config for [cover.template]: Unable to determine action @ data['covers']['garage_door']['close_cover'][0]. Got {'http_request.get': 'http://192.168.1.2:80/postEvent.html?action=input&STM=0&MOD=3&CHA=2&EVT=2'}
Unable to determine action @ data['covers']['garage_door']['open_cover'][0]. Got {'http_request.get': 'http://192.168.1.2:80/postEvent.html?action=input&STM=0&MOD=3&CHA=3&EVT=2'}. (See ?, line ?).  

update yaml :

# Example configuration.yaml entry
cover:
  - platform: template
    covers:
      garage_door:
        device_class: garage
        friendly_name: "rolluikvoor"
        #value_template: "{{ states('sensor.garage_door')|float > 0 }}"
        open_cover:
          #service: script.open_garage_door
          - http_request.get: "http://192.168.1.2:80/postEvent.html?action=input&STM=0&MOD=3&CHA=3&EVT=2"
        close_cover:
          #service: script.close_garage_door
          - http_request.get: "http://192.168.1.2:80/postEvent.html?action=input&STM=0&MOD=3&CHA=2&EVT=2"
        #stop_cover:
          #service: script.stop_garage_door  

You want rest commands:

1 Like

ok thx again ,

i tried to merge it toghether , but i doesnt work :frowning:

  
rest_command:
  roll_open:
    url: "http://192.168.1.2:80/postEvent.html?action=input&STM=0&MOD=3&CHA=3&EVT=2"
    method: put
    #content_type: "application/x-www-form-urlencoded"
    #payload: "mode=songs"
  roll_close:
    url: "http://192.168.1.2:80/postEvent.html?action=input&STM=0&MOD=3&CHA=2&EVT=2"
    method: put
    #content_type: "application/x-www-form-urlencoded"
    #payload: "mode=off"  
  
  
# Example configuration.yaml entry
cover:
  - platform: template
    covers:
      garage_door:
        device_class: garage
        friendly_name: "rolluikvoor"
        #value_template: "{{ states('sensor.garage_door')|float > 0 }}"
        open_cover:
          service: roll_open
          #- http_request.get: "http://192.168.1.2:80/postEvent.html?action=input&STM=0&MOD=3&CHA=3&EVT=2"
          
        close_cover:
          service: roll_close
          #- http_request.get: "http://192.168.1.2:80/postEvent.html?action=input&STM=0&MOD=3&CHA=2&EVT=2"
        #stop_cover:
          #service: script.stop_garage_door  

**Ongeldige configuratie!
Invalid config for [cover.template]: Service roll_close does not match format . for dictionary value @ data[ā€˜coversā€™][ā€˜garage_doorā€™][ā€˜close_coverā€™][0][ā€˜serviceā€™]. Got None
Service roll_open does not match format . for dictionary value @ data[ā€˜coversā€™][ā€˜garage_doorā€™][ā€˜open_coverā€™][0][ā€˜serviceā€™]. Got None. (See ?, line ?). **

Not the ā€œread the documentationā€ type, are you?

        open_cover:
          service: rest_command.roll_open
1 Like

hello ,
yes and no

the documention needs more examples i guess.

meanwhile i leared a lot from you :

thx

the working solution :

rest_command:
  roll_open:
    url: "http://192.168.1.2:80/postEvent.html?action=input&STM=0&MOD=3&CHA=3&EVT=2"
  roll_close:
    url: "http://192.168.1.2:80/postEvent.html?action=input&STM=0&MOD=3&CHA=2&EVT=2"

# Example configuration.yaml entry
cover:
  - platform: template
    covers:
      garage_door:
        device_class: garage
        friendly_name: "rolluikvoor"
        open_cover:
          service: rest_command.roll_open
          #- http_request.get: "http://192.168.1.2:80/postEvent.html?action=input&STM=0&MOD=3&CHA=3&EVT=2"
        close_cover:
          service: rest_command.roll_close
          #- http_request.get: "http://192.168.1.2:80/postEvent.html?action=input&STM=0&MOD=3&CHA=2&EVT=2"
        #stop_cover:
          #service: script.stop_garage_door