docs: update homeassistant_2
This commit is contained in:
parent
119e321874
commit
cf78ad6851
|
|
@ -2,7 +2,7 @@
|
|||
title: Homeassistant
|
||||
description:
|
||||
published: 1
|
||||
date: 2024-02-03T20:23:54.798Z
|
||||
date: 2024-02-03T20:43:39.935Z
|
||||
tags:
|
||||
editor: markdown
|
||||
dateCreated: 2024-02-03T20:23:54.798Z
|
||||
|
|
@ -12,45 +12,45 @@ dateCreated: 2024-02-03T20:23:54.798Z
|
|||
|
||||
Need to access time sensor
|
||||
|
||||
\
|
||||
|
||||
|
||||
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
|
||||
|
||||
\
|
||||
|
||||
|
||||
<https://community.home-assistant.io/t/how-to-manually-set-state-value-of-sensor/43975/21>
|
||||
|
||||
|
|
@ -60,7 +60,7 @@ trigger:
|
|||
|
||||
platform: time_pattern
|
||||
|
||||
minutes: \'/1\'
|
||||
minutes: '/1'
|
||||
|
||||
action:
|
||||
|
||||
|
|
@ -72,35 +72,19 @@ entity_id: sensor.cold_water_rate
|
|||
|
||||
state: 42
|
||||
|
||||
\
|
||||
|
||||
\
|
||||
|
||||
\
|
||||
|
||||
\
|
||||
|
||||
\
|
||||
|
||||
\
|
||||
|
||||
\
|
||||
|
||||
\
|
||||
|
||||
\
|
||||
|
||||
\
|
||||
|
||||
\
|
||||
|
||||
\
|
||||
|
||||
\
|
||||
|
||||
\
|
||||
|
||||
\
|
||||
|
||||
# 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"}
|
||||
|
||||
- [domains:\
|
||||
- habora.duckdns.org\
|
||||
token: 799093a4-0b34-454f-99cb-25a4637bf404\
|
||||
aliases: \[\]\
|
||||
lets_encrypt:\
|
||||
accept_terms: true\
|
||||
algo: secp384r1\
|
||||
certfile: fullchain.pem\
|
||||
keyfile: privkey.pem\
|
||||
- [domains:
|
||||
\- habora.duckdns.org
|
||||
token: 799093a4-0b34-454f-99cb-25a4637bf404
|
||||
aliases: []
|
||||
lets_encrypt:
|
||||
accept_terms: true
|
||||
algo: secp384r1
|
||||
certfile: fullchain.pem
|
||||
keyfile: privkey.pem
|
||||
seconds: 300]{style="background: #e8f2a1"}
|
||||
|
||||
-
|
||||
|
||||
- [MariaDB]{style="background: #e8f2a1"}
|
||||
|
||||
- [databases:\
|
||||
- homeassistant\
|
||||
logins:\
|
||||
- username: homeassistant\
|
||||
password: password1234\
|
||||
- username: read_only_user\
|
||||
password: password1234\
|
||||
rights:\
|
||||
- username: homeassistant\
|
||||
database: homeassistant\
|
||||
- username: read_only_user\
|
||||
database: homeassistant\
|
||||
privileges:\
|
||||
- SELECT]{style="background: #e8f2a1"}
|
||||
- [databases:
|
||||
\- homeassistant
|
||||
logins:
|
||||
\- username: homeassistant
|
||||
password: password1234
|
||||
\- username: read_only_user
|
||||
password: password1234
|
||||
rights:
|
||||
\- username: homeassistant
|
||||
database: homeassistant
|
||||
\- username: read_only_user
|
||||
database: homeassistant
|
||||
privileges:
|
||||
\- SELECT]{style="background: #e8f2a1"}
|
||||
|
||||
- [recorder:\
|
||||
- [recorder:
|
||||
db_url:
|
||||
mysql://homeassistant:password@core-mariadb/homeassistant?charset=utf8mb4]{style="background: #e8f2a1"}
|
||||
|
||||
-
|
||||
|
||||
- [Nginx Proxy Manager]{style="background: #e8f2a1"}
|
||||
|
||||
|
|
@ -214,6 +196,7 @@ http://192.168.178.52:8123/
|
|||
- [{#Image51
|
||||
align="bottom" width="547" height="113" border="0"}
|
||||
]{style="background: #e8f2a1"}
|
||||

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