Switch waste collection to separate module
This commit is contained in:
parent
455a9a5ec8
commit
93768c5f89
@ -266,71 +266,13 @@ rest_command:
|
|||||||
"command": "connect"
|
"command": "connect"
|
||||||
}
|
}
|
||||||
|
|
||||||
rest:
|
waste_collection_schedule:
|
||||||
- scan_interval: 43200 # 12h
|
sources:
|
||||||
resource: 'https://warszawa19115.pl/harmonogramy-wywozu-odpadow?p_p_id=portalCKMjunkschedules_WAR_portalCKMjunkschedulesportlet_INSTANCE_o5AIb2mimbRJ&p_p_lifecycle=2&p_p_state=normal&p_p_mode=view&p_p_resource_id=ajaxResourceURL&p_p_cacheability=cacheLevelPage&p_p_col_id=column-1&p_p_col_count=1'
|
- name: warszawa19115_pl
|
||||||
method: POST
|
args:
|
||||||
payload: '_portalCKMjunkschedules_WAR_portalCKMjunkschedulesportlet_INSTANCE_o5AIb2mimbRJ_addressPointId=76748040'
|
geolocation_id: 76748040
|
||||||
headers:
|
|
||||||
Content-Type: 'application/x-www-form-urlencoded'
|
|
||||||
sensor:
|
|
||||||
- name: "Address"
|
|
||||||
value_template: "{{ value_json[0].adres }}"
|
|
||||||
- name: "Garbage Collection BIO"
|
|
||||||
device_class: 'timestamp'
|
|
||||||
value_template: "{{ value_json[0].harmonogramy[1].data }}"
|
|
||||||
json_attributes_path: "$.[0].harmonogramy.[1].frakcja"
|
|
||||||
json_attributes:
|
|
||||||
- id_frakcja
|
|
||||||
- kod
|
|
||||||
- nazwa
|
|
||||||
- opis
|
|
||||||
- name: "Garbage Collection Metal & Plastics"
|
|
||||||
device_class: 'timestamp'
|
|
||||||
value_template: "{{ value_json[0].harmonogramy[2].data }}"
|
|
||||||
json_attributes_path: "$.[0].harmonogramy.[2].frakcja"
|
|
||||||
json_attributes:
|
|
||||||
- id_frakcja
|
|
||||||
- kod
|
|
||||||
- nazwa
|
|
||||||
- opis
|
|
||||||
- name: "Garbage Collection Paper"
|
|
||||||
device_class: 'timestamp'
|
|
||||||
value_template: "{{ value_json[0].harmonogramy[3].data }}"
|
|
||||||
json_attributes_path: "$.[0].harmonogramy.[3].frakcja"
|
|
||||||
json_attributes:
|
|
||||||
- id_frakcja
|
|
||||||
- kod
|
|
||||||
- nazwa
|
|
||||||
- opis
|
|
||||||
- name: "Garbage Collection Glass"
|
|
||||||
device_class: 'timestamp'
|
|
||||||
value_template: "{{ value_json[0].harmonogramy[4].data }}"
|
|
||||||
json_attributes_path: "$.[0].harmonogramy.[4].frakcja"
|
|
||||||
json_attributes:
|
|
||||||
- id_frakcja
|
|
||||||
- kod
|
|
||||||
- nazwa
|
|
||||||
- opis
|
|
||||||
- name: "Garbage Collection Furniture"
|
|
||||||
device_class: 'timestamp'
|
|
||||||
value_template: "{{ value_json[0].harmonogramy[6].data }}"
|
|
||||||
json_attributes_path: "$.[0].harmonogramy.[6].frakcja"
|
|
||||||
json_attributes:
|
|
||||||
- id_frakcja
|
|
||||||
- kod
|
|
||||||
- nazwa
|
|
||||||
- opis
|
|
||||||
- name: "Garbage Collection Mixed"
|
|
||||||
device_class: 'timestamp'
|
|
||||||
value_template: "{{ value_json[0].harmonogramy[7].data }}"
|
|
||||||
json_attributes_path: "$.[0].harmonogramy.[7].frakcja"
|
|
||||||
json_attributes:
|
|
||||||
- id_frakcja
|
|
||||||
- kod
|
|
||||||
- nazwa
|
|
||||||
- opis
|
|
||||||
|
|
||||||
|
rest:
|
||||||
calendar:
|
calendar:
|
||||||
- platform: caldav
|
- platform: caldav
|
||||||
url: https://cloud.grondek.pl/remote.php/dav
|
url: https://cloud.grondek.pl/remote.php/dav
|
||||||
|
Loading…
Reference in New Issue
Block a user