mirror of
https://github.com/kittywitch/nixfiles.git
synced 2026-02-10 04:49:19 -08:00
fix: se presence topic
you can't just put `!secret` anywhere in a string
This commit is contained in:
parent
678281c56f
commit
78f95bfcb3
1 changed files with 3 additions and 1 deletions
|
|
@ -56,11 +56,12 @@ in {
|
||||||
|
|
||||||
|
|
||||||
secrets.files.home-assistant-secrets = {
|
secrets.files.home-assistant-secrets = {
|
||||||
text = builtins.toJSON {
|
text = builtins.toJSON rec {
|
||||||
latitude = tf.variables.latitude.ref;
|
latitude = tf.variables.latitude.ref;
|
||||||
longitude = tf.variables.longitude.ref;
|
longitude = tf.variables.longitude.ref;
|
||||||
elevation = tf.variables.elevation.ref;
|
elevation = tf.variables.elevation.ref;
|
||||||
iphone-se-irk = tf.variables.iphone-se-irk.ref;
|
iphone-se-irk = tf.variables.iphone-se-irk.ref;
|
||||||
|
iphone-se-irk-topic = "espresense/devices/${iphone-se-irk}";
|
||||||
mpd-shanghai-password = tf.variables.mpd-shanghai-password.ref;
|
mpd-shanghai-password = tf.variables.mpd-shanghai-password.ref;
|
||||||
};
|
};
|
||||||
owner = "hass";
|
owner = "hass";
|
||||||
|
|
@ -262,6 +263,7 @@ in {
|
||||||
in [
|
in [
|
||||||
(mkESPresenceBeacon {
|
(mkESPresenceBeacon {
|
||||||
device_id = "!secret iphone-se-irk";
|
device_id = "!secret iphone-se-irk";
|
||||||
|
state_topic = "!secret iphone-se-irk-topic";
|
||||||
name = "iPhone SE";
|
name = "iPhone SE";
|
||||||
timeout = 2;
|
timeout = 2;
|
||||||
away_timeout = 120;
|
away_timeout = 120;
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue