Merge pull request #49 from arcnmx/hass-se

fix: se presence topic
This commit is contained in:
Kat Inskip 2022-10-07 10:48:37 -07:00 committed by GitHub
commit 45d87336d4
No known key found for this signature in database
GPG key ID: 4AEE18F83AFDEB23

View file

@ -56,11 +56,12 @@ in {
secrets.files.home-assistant-secrets = {
text = builtins.toJSON {
text = builtins.toJSON rec {
latitude = tf.variables.latitude.ref;
longitude = tf.variables.longitude.ref;
elevation = tf.variables.elevation.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;
};
owner = "hass";
@ -262,6 +263,7 @@ in {
in [
(mkESPresenceBeacon {
device_id = "!secret iphone-se-irk";
state_topic = "!secret iphone-se-irk-topic";
name = "iPhone SE";
timeout = 2;
away_timeout = 120;