docs: update homeassistant_2
This commit is contained in:
parent
119e321874
commit
cf78ad6851
|
|
@ -2,7 +2,7 @@
|
||||||
title: Homeassistant
|
title: Homeassistant
|
||||||
description:
|
description:
|
||||||
published: 1
|
published: 1
|
||||||
date: 2024-02-03T20:23:54.798Z
|
date: 2024-02-03T20:43:39.935Z
|
||||||
tags:
|
tags:
|
||||||
editor: markdown
|
editor: markdown
|
||||||
dateCreated: 2024-02-03T20:23:54.798Z
|
dateCreated: 2024-02-03T20:23:54.798Z
|
||||||
|
|
@ -12,45 +12,45 @@ dateCreated: 2024-02-03T20:23:54.798Z
|
||||||
|
|
||||||
Need to access time sensor
|
Need to access time sensor
|
||||||
|
|
||||||
\
|
|
||||||
|
|
||||||
alternatively, use now
|
alternatively, use now
|
||||||
|
|
||||||
\
|
|
||||||
|
|
||||||
\
|
|
||||||
template:\
|
|
||||||
- trigger:\
|
|
||||||
- platform: time_pattern\
|
|
||||||
seconds: \"/1\"\
|
|
||||||
sensor:\
|
|
||||||
- name: time\
|
|
||||||
state: \"{{ now().strftime(\'%H:%M:%S\') }}\"\
|
|
||||||
\
|
|
||||||
{{ now().strftime(\"%I:%M %p\") }}\
|
|
||||||
\
|
|
||||||
{{ as_timestamp(state_attr(\"device_tracker.android_9050f88e39898022\",
|
|
||||||
\"last_time_reachable\")) \| timestamp_local }}\
|
|
||||||
{##{{ state_attr(\"device_tracker.android_9050f88e39898022\",
|
|
||||||
\"last_time_reachable\").strftime(\'%H:%M:%S\') }}##}\
|
|
||||||
\
|
|
||||||
- condition: template\
|
|
||||||
value_template: \'\"{{ now().timestamp()+300 \<
|
|
||||||
(as_timestamp(state_attr(\"device_tracker.android_9050f88e39898022\",
|
|
||||||
\"last_time_reachable\")) \| float)\
|
|
||||||
}}\"\'
|
|
||||||
|
|
||||||
\
|
|
||||||
|
|
||||||
\
|
template:
|
||||||
|
- trigger:
|
||||||
|
- platform: time_pattern
|
||||||
|
seconds: "/1"
|
||||||
|
sensor:
|
||||||
|
- name: time
|
||||||
|
state: "{{ now().strftime('%H:%M:%S') }}"
|
||||||
|
|
||||||
|
{{ now().strftime("%I:%M %p") }}
|
||||||
|
|
||||||
|
{{ as_timestamp(state_attr("device_tracker.android_9050f88e39898022",
|
||||||
|
"last_time_reachable")) | timestamp_local }}
|
||||||
|
{##{{ state_attr("device_tracker.android_9050f88e39898022",
|
||||||
|
"last_time_reachable").strftime('%H:%M:%S') }}##}
|
||||||
|
|
||||||
|
- condition: template
|
||||||
|
value_template: '"{{ now().timestamp()+300 <
|
||||||
|
(as_timestamp(state_attr("device_tracker.android_9050f88e39898022",
|
||||||
|
"last_time_reachable")) | float)
|
||||||
|
}}"'
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
|
|
||||||
\
|
|
||||||
|
|
||||||
\
|
|
||||||
|
|
||||||
Change attribute value via automation
|
Change attribute value via automation
|
||||||
|
|
||||||
\
|
|
||||||
|
|
||||||
<https://community.home-assistant.io/t/how-to-manually-set-state-value-of-sensor/43975/21>
|
<https://community.home-assistant.io/t/how-to-manually-set-state-value-of-sensor/43975/21>
|
||||||
|
|
||||||
|
|
@ -60,7 +60,7 @@ trigger:
|
||||||
|
|
||||||
platform: time_pattern
|
platform: time_pattern
|
||||||
|
|
||||||
minutes: \'/1\'
|
minutes: '/1'
|
||||||
|
|
||||||
action:
|
action:
|
||||||
|
|
||||||
|
|
@ -72,35 +72,19 @@ entity_id: sensor.cold_water_rate
|
||||||
|
|
||||||
state: 42
|
state: 42
|
||||||
|
|
||||||
\
|
|
||||||
|
|
||||||
\
|
|
||||||
|
|
||||||
\
|
|
||||||
|
|
||||||
\
|
|
||||||
|
|
||||||
\
|
|
||||||
|
|
||||||
\
|
|
||||||
|
|
||||||
\
|
|
||||||
|
|
||||||
\
|
|
||||||
|
|
||||||
\
|
|
||||||
|
|
||||||
\
|
|
||||||
|
|
||||||
\
|
|
||||||
|
|
||||||
\
|
|
||||||
|
|
||||||
\
|
|
||||||
|
|
||||||
\
|
|
||||||
|
|
||||||
\
|
|
||||||
|
|
||||||
# new HA OS on RaPi4 {#new-ha-os-on-rapi4 .western}
|
# new HA OS on RaPi4 {#new-ha-os-on-rapi4 .western}
|
||||||
|
|
||||||
|
|
@ -128,41 +112,39 @@ http://192.168.178.52:8123/
|
||||||
|
|
||||||
- [duckdns]{style="background: #e8f2a1"}
|
- [duckdns]{style="background: #e8f2a1"}
|
||||||
|
|
||||||
- [domains:\
|
- [domains:
|
||||||
- habora.duckdns.org\
|
\- habora.duckdns.org
|
||||||
token: 799093a4-0b34-454f-99cb-25a4637bf404\
|
token: 799093a4-0b34-454f-99cb-25a4637bf404
|
||||||
aliases: \[\]\
|
aliases: []
|
||||||
lets_encrypt:\
|
lets_encrypt:
|
||||||
accept_terms: true\
|
accept_terms: true
|
||||||
algo: secp384r1\
|
algo: secp384r1
|
||||||
certfile: fullchain.pem\
|
certfile: fullchain.pem
|
||||||
keyfile: privkey.pem\
|
keyfile: privkey.pem
|
||||||
seconds: 300]{style="background: #e8f2a1"}
|
seconds: 300]{style="background: #e8f2a1"}
|
||||||
|
|
||||||
-
|
|
||||||
|
|
||||||
- [MariaDB]{style="background: #e8f2a1"}
|
- [MariaDB]{style="background: #e8f2a1"}
|
||||||
|
|
||||||
- [databases:\
|
- [databases:
|
||||||
- homeassistant\
|
\- homeassistant
|
||||||
logins:\
|
logins:
|
||||||
- username: homeassistant\
|
\- username: homeassistant
|
||||||
password: password1234\
|
password: password1234
|
||||||
- username: read_only_user\
|
\- username: read_only_user
|
||||||
password: password1234\
|
password: password1234
|
||||||
rights:\
|
rights:
|
||||||
- username: homeassistant\
|
\- username: homeassistant
|
||||||
database: homeassistant\
|
database: homeassistant
|
||||||
- username: read_only_user\
|
\- username: read_only_user
|
||||||
database: homeassistant\
|
database: homeassistant
|
||||||
privileges:\
|
privileges:
|
||||||
- SELECT]{style="background: #e8f2a1"}
|
\- SELECT]{style="background: #e8f2a1"}
|
||||||
|
|
||||||
- [recorder:\
|
- [recorder:
|
||||||
db_url:
|
db_url:
|
||||||
mysql://homeassistant:password@core-mariadb/homeassistant?charset=utf8mb4]{style="background: #e8f2a1"}
|
mysql://homeassistant:password@core-mariadb/homeassistant?charset=utf8mb4]{style="background: #e8f2a1"}
|
||||||
|
|
||||||
-
|
|
||||||
|
|
||||||
- [Nginx Proxy Manager]{style="background: #e8f2a1"}
|
- [Nginx Proxy Manager]{style="background: #e8f2a1"}
|
||||||
|
|
||||||
|
|
@ -214,6 +196,7 @@ http://192.168.178.52:8123/
|
||||||
- [{#Image51
|
- [{#Image51
|
||||||
align="bottom" width="547" height="113" border="0"}
|
align="bottom" width="547" height="113" border="0"}
|
||||||
]{style="background: #e8f2a1"}
|
]{style="background: #e8f2a1"}
|
||||||
|

|
||||||
|
|
||||||
- [configuration.yaml]{style="background: #e8f2a1"}
|
- [configuration.yaml]{style="background: #e8f2a1"}
|
||||||
|
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue