Commit 62044610 authored by Ľuboš Jenčík's avatar Ľuboš Jenčík
Browse files

push automation

parent d3b2fdd4
{"$":"4181fdc15f66ab8c3a180cb4f3beef56RAopPnUap9Y0Z/9EC/V9cqlSipBtvL+iisqCUHF84w2+5QGUDQj/SushibwC1Fir2auoGYeReTfegAbWH+rdiy2gcC6SyXW1UlVgD8bvYmN85gj39DWrfwbnO8HoZs0Fhz4Eo3Y="}
\ No newline at end of file
{"$":"592df333ee4c6ed611e42273120f437boPnq9dLq/xSlvLnAfEHJa0ZpYygZWtnpOmJbkyNLNQ5KgdrZIMPUnvYBwLZdhgQWuNRoHW6Sn8LRnWu84PutdpFm2cgbm7ICFA2hYrBv1iY="}
\ No newline at end of file
This diff is collapsed.
2021.4.6
\ No newline at end of file
2021.4.5
\ No newline at end of file
......@@ -83,7 +83,7 @@
"access_token_expiration": 1800.0,
"token": "71ea72714ae0f7c9cf41c3a98ba6c72819426561dcb9c31ad566f94b95ff0cbcdbd6ea28bca7bfbe0bac106f20fcd6e458a559f05e9234895542ead7fcac77fa",
"jwt_key": "c5ed344152aa078b99437e249de7a4e69dab75428379960015f4aed043d53f163fdf3e4bd2defd387002e44d84b63883b24dc8bbcec36fabc0d43eaa029e4110",
"last_used_at": "2021-04-28T15:10:21.713859+00:00",
"last_used_at": "2021-04-28T23:23:59.705685+00:00",
"last_used_ip": "192.168.99.1",
"credential_id": "33da0f9bc92c4c139140820d1d25899b",
"version": "2021.4.5"
......
......@@ -12,15 +12,15 @@
"user_id": "e1c1de7135b9419386f3b38ae8cdeb07",
"friendly_name": "Hackathon-2021"
},
"last_changed": "2021-04-28T19:20:18.148012+00:00",
"last_updated": "2021-04-28T19:20:19.628155+00:00",
"last_changed": "2021-04-28T23:34:14.310334+00:00",
"last_updated": "2021-04-28T23:34:32.128943+00:00",
"context": {
"id": "c01a7725312ec8a795812a0322af9f16",
"id": "16a3aa282e9ae285f5f4cf3745064a60",
"parent_id": null,
"user_id": null
}
},
"last_seen": "2021-04-28T19:26:02.364305+00:00"
"last_seen": "2021-04-28T23:36:32.730096+00:00"
},
{
"state": {
......@@ -29,15 +29,15 @@
"attributes": {
"friendly_name": "Pump of well 1"
},
"last_changed": "2021-04-28T19:20:19.384983+00:00",
"last_updated": "2021-04-28T19:20:19.384983+00:00",
"last_changed": "2021-04-28T21:15:35.662712+00:00",
"last_updated": "2021-04-28T21:15:35.662712+00:00",
"context": {
"id": "2b9dfe401983976e4c84280e942737de",
"id": "b79742e1567221892d562edba05c3f56",
"parent_id": null,
"user_id": null
}
},
"last_seen": "2021-04-28T19:26:02.364305+00:00"
"last_seen": "2021-04-28T23:33:22.195288+00:00"
},
{
"state": {
......@@ -46,15 +46,15 @@
"attributes": {
"friendly_name": "Pump of well 2"
},
"last_changed": "2021-04-28T19:20:19.385037+00:00",
"last_updated": "2021-04-28T19:20:19.385037+00:00",
"last_changed": "2021-04-28T21:15:41.750446+00:00",
"last_updated": "2021-04-28T21:15:41.750446+00:00",
"context": {
"id": "6e8835afb8c181f28077e5852fa36519",
"id": "0a4e1e327fadeb34ceeace769a558ec8",
"parent_id": null,
"user_id": null
}
},
"last_seen": "2021-04-28T19:26:02.364305+00:00"
"last_seen": "2021-04-28T23:33:22.195288+00:00"
}
]
}
\ No newline at end of file
......@@ -2,12 +2,12 @@
"version": 1,
"key": "http",
"data": {
"ssl_profile": "modern",
"server_port": 8123,
"ssl_profile": "modern",
"login_attempts_threshold": -1,
"ip_ban_enabled": true,
"cors_allowed_origins": [
"https://cast.home-assistant.io"
],
"login_attempts_threshold": -1,
"ip_ban_enabled": true
]
}
}
\ No newline at end of file
......@@ -248,17 +248,8 @@
"name": "Humidity of Field"
},
{
"type": "entities",
"entities": [
{
"entity": "switch.pump_of_well_1"
},
{
"entity": "switch.pump_of_well_2"
}
],
"title": "Pumps",
"show_header_toggle": false
"type": "entity",
"entity": "sensor.temperature_of_kosice"
},
{
"type": "picture-elements",
......
......@@ -413,26 +413,133 @@ sensor:
field: value
database: home_assistant
- platform: influxdb
host: influxdb-hackathon
username: user
password: secret
queries:
- name: Temperature of Kosice
measurement: temperatureKosice
where: 'time > now() - 5d'
value_template: '{{ value | round(1) }}'
group_function: last
field: value
database: home_assistant
- platform: influxdb
host: influxdb-hackathon
username: user
password: secret
queries:
- name: Temperature of Michalovce
measurement: temperatureMichalovce
where: 'time > now() - 5d'
value_template: '{{ value | round(1) }}'
group_function: last
field: value
database: home_assistant
- platform: influxdb
host: influxdb-hackathon
username: user
password: secret
queries:
- name: Temperature of Secovce
measurement: temperatureSecovce
where: 'time > now() - 5d'
value_template: '{{ value | round(1) }}'
group_function: last
field: value
database: home_assistant
switch:
- platform: mqtt
state_topic: "irrigation/pump1/switch"
command_topic: "irrigation/pump1/switch"
name: "Pump of well 1"
qos: 2
retain: true
payload_on: 1
payload_off: 0
unique_id: 1
- platform: mqtt
state_topic: "irrigation/pump2/switch"
command_topic: "irrigation/pump2/switch"
name: "Pump of well 2"
qos: 2
retain: true
payload_on: 1
payload_off: 0
unique_id: 2
- platform: influxdb
host: influxdb-hackathon
username: user
password: secret
queries:
- name: Temperature of Presov
measurement: temperaturePresov
where: 'time > now() - 5d'
value_template: '{{ value | round(1) }}'
group_function: last
field: value
database: home_assistant
- platform: influxdb
host: influxdb-hackathon
username: user
password: secret
queries:
- name: Temperature of Gelnica
measurement: temperatureGelnica
where: 'time > now() - 5d'
value_template: '{{ value | round(1) }}'
group_function: last
field: value
database: home_assistant
- platform: influxdb
host: influxdb-hackathon
username: user
password: secret
queries:
- name: Temperature of Humenne
measurement: temperatureHumenne
where: 'time > now() - 5d'
value_template: '{{ value | round(1) }}'
group_function: last
field: value
database: home_assistant
- platform: influxdb
host: influxdb-hackathon
username: user
password: secret
queries:
- name: Temperature of Sobrance
measurement: temperatureSobrance
where: 'time > now() - 5d'
value_template: '{{ value | round(1) }}'
group_function: last
field: value
database: home_assistant
- platform: influxdb
host: influxdb-hackathon
username: user
password: secret
queries:
- name: Temperature of Sabinov
measurement: temperatureSabinov
where: 'time > now() - 5d'
value_template: '{{ value | round(1) }}'
group_function: last
field: value
database: home_assistant
- platform: influxdb
host: influxdb-hackathon
username: user
password: secret
queries:
- name: Temperature of Trebisov
measurement: temperatureTrebisov
where: 'time > now() - 5d'
value_template: '{{ value | round(1) }}'
group_function: last
field: value
database: home_assistant
- platform: influxdb
host: influxdb-hackathon
username: user
password: secret
queries:
- name: Temperature of Roznava
measurement: temperatureRoznava
where: 'time > now() - 5d'
value_template: '{{ value | round(1) }}'
group_function: last
field: value
database: home_assistant
This diff is collapsed.
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment