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

influxdb in homeassistant

parent f51d0118
This diff is collapsed.
......@@ -34,6 +34,8 @@ services:
volumes:
- /etc/localtime:/etc/localtime:ro
- ./ha-config:/config
networks:
- iot_net_hackathon
networks:
iot_net_hackathon:
......@@ -83,7 +83,7 @@
"access_token_expiration": 1800.0,
"token": "71ea72714ae0f7c9cf41c3a98ba6c72819426561dcb9c31ad566f94b95ff0cbcdbd6ea28bca7bfbe0bac106f20fcd6e458a559f05e9234895542ead7fcac77fa",
"jwt_key": "c5ed344152aa078b99437e249de7a4e69dab75428379960015f4aed043d53f163fdf3e4bd2defd387002e44d84b63883b24dc8bbcec36fabc0d43eaa029e4110",
"last_used_at": "2021-04-26T21:01:54.329226+00:00",
"last_used_at": "2021-04-26T23:49:53.407057+00:00",
"last_used_ip": "192.168.99.1",
"credential_id": "33da0f9bc92c4c139140820d1d25899b",
"version": "2021.4.5"
......
......@@ -19,6 +19,21 @@
"connection_class": "cloud_poll",
"unique_id": null,
"disabled_by": null
},
{
"entry_id": "d494a746a2c65cb59ba8a387a3798346",
"version": 1,
"domain": "mqtt",
"title": "configuration.yaml",
"data": {},
"options": {},
"system_options": {
"disable_new_entities": false
},
"source": "import",
"connection_class": "local_push",
"unique_id": null,
"disabled_by": null
}
]
}
......
......@@ -12,15 +12,15 @@
"user_id": "e1c1de7135b9419386f3b38ae8cdeb07",
"friendly_name": "Hackathon-2021"
},
"last_changed": "2021-04-26T21:01:38.184786+00:00",
"last_updated": "2021-04-26T21:01:39.986273+00:00",
"last_changed": "2021-04-26T23:51:31.495896+00:00",
"last_updated": "2021-04-26T23:51:34.300548+00:00",
"context": {
"id": "e8da1d4716d6a7143ae9d8dfce26669b",
"id": "147a337b50bd6ef87ae7a3277a101810",
"parent_id": null,
"user_id": null
}
},
"last_seen": "2021-04-26T21:02:54.040144+00:00"
"last_seen": "2021-04-27T00:10:02.704151+00:00"
}
]
}
\ No newline at end of file
......@@ -5,9 +5,9 @@
"cors_allowed_origins": [
"https://cast.home-assistant.io"
],
"server_port": 8123,
"ip_ban_enabled": true,
"ssl_profile": "modern",
"login_attempts_threshold": -1,
"ip_ban_enabled": true
"server_port": 8123
}
}
\ No newline at end of file
......@@ -34,6 +34,22 @@
"sun.sun"
],
"title": "Sun"
},
{
"type": "entities",
"entities": [
{
"entity": "sensor.last_value_of_well1"
}
],
"title": "Value of water level in well 1",
"state_color": false,
"footer": {
"type": "graph",
"entity": "sensor.last_value_of_well1",
"hours_to_show": 24,
"detail": 1
}
}
]
},
......
......@@ -11,13 +11,27 @@ automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
mqtt:
broker: broker.hivemq.com
discovery: false
influxdb:
host: influxdb-hackathon
port: 8086
database: home_assistant
verify_ssl: false
exclude:
entity_globs: "*"
sensor:
platform: influxdb
host: influxdb-hackathon
username: user
password: secret
max_retries: 3
ssl: false
verify_ssl: false
default_measurement: state
queries:
- name: last value of well1
measurement: well1
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