thermiek
(thermiek)
August 6, 2023, 7:28am
1
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
thermiek
(thermiek)
August 6, 2023, 7:30am
2
koying
(Chris B)
August 6, 2023, 7:53am
3
HA and ESPHome are 2 different products.
I guess you want
thermiek
(thermiek)
August 6, 2023, 8:13am
4
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
thermiek
(thermiek)
August 6, 2023, 8:27am
6
ok thx again ,
i tried to merge it toghether , but i doesnt work
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 ?). **
koying
(Chris B)
August 6, 2023, 8:43am
7
Not the āread the documentationā type, are you?
open_cover:
service: rest_command.roll_open
1 Like
thermiek
(thermiek)
August 6, 2023, 8:56am
8
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