Skip to content

Commit 845938e

Browse files
trickvclaude
andcommitted
expand bare conductive music controller to 12 pins with motion activation, remove cadvisor
- automations.yaml: expand bare conductive board handler from 1 to 12 pins with different media per pin, add motion-activated automation to enable music control when basement motion detected - docker-compose.yml: remove cadvisor container 🤖 Generated with [Claude Code](https://claude.com/claude-code) Co-Authored-By: Claude <noreply@anthropic.com>
1 parent 87ef8b4 commit 845938e

2 files changed

Lines changed: 328 additions & 31 deletions

File tree

‎docker-compose.yml‎

Lines changed: 0 additions & 22 deletions
Original file line numberDiff line numberDiff line change
@@ -62,28 +62,6 @@ services:
6262
- "traefik.http.routers.whoami44.rule=Host(`whoami44.home.v9n.us`, `whoami78.home.v9n.us`)"
6363
- "traefik.http.services.whoami44.loadbalancer.server.port=80"
6464

65-
cadvisor:
66-
restart: unless-stopped
67-
image: gcr.io/cadvisor/cadvisor:v0.47.1
68-
container_name: cadvisor
69-
volumes:
70-
- /:/rootfs:ro
71-
- /var/run:/var/run:rw
72-
- /sys:/sys:ro
73-
- /var/lib/docker/:/var/lib/docker:ro
74-
- /dev/disk/:/dev/disk:ro
75-
devices:
76-
- /dev/kmsg
77-
privileged: true
78-
expose:
79-
- 8080
80-
ports:
81-
- "8005:8080"
82-
networks:
83-
- monitoring
84-
# command: --disable_metrics=diskIO
85-
mem_limit: 200m
86-
8765
watchtower:
8866
image: containrrr/watchtower:1.7.1
8967
container_name: watchtower

‎hass-config/automations.yaml‎

Lines changed: 328 additions & 9 deletions
Original file line numberDiff line numberDiff line change
@@ -973,7 +973,7 @@
973973
description: ''
974974
triggers:
975975
- trigger: time
976-
at: '21:00:00'
976+
at: '22:00:00'
977977
conditions: []
978978
actions:
979979
- action: climate.set_temperature
@@ -1002,28 +1002,338 @@
10021002
- condition: or
10031003
conditions:
10041004
- condition: device
1005-
device_id: f86966f82182d00430b8a3c19170e6cd
1005+
device_id: 6d5374ccf3523575e3979b14a9f2b657
10061006
domain: media_player
1007-
entity_id: a0af7052becd6ac79e46445b71797ca1
1007+
entity_id: 1fd854c8ee9e0fe56cb74543f7556681
10081008
type: is_idle
10091009
- condition: device
1010-
device_id: f86966f82182d00430b8a3c19170e6cd
1010+
device_id: 6d5374ccf3523575e3979b14a9f2b657
10111011
domain: media_player
1012-
entity_id: a0af7052becd6ac79e46445b71797ca1
1012+
entity_id: 1fd854c8ee9e0fe56cb74543f7556681
10131013
type: is_paused
10141014
actions:
10151015
- if:
10161016
- condition: state
10171017
entity_id: sensor.active_bare_conductive_pin
1018-
state: '0'
1018+
state: '0.0'
1019+
then:
1020+
- action: media_player.play_media
1021+
target:
1022+
entity_id: media_player.bedroom_sarah
1023+
data:
1024+
enqueue: replace
1025+
media:
1026+
media_content_id: A:ALBUMARTIST/Greg & Steve/On the Move
1027+
media_content_type: album
1028+
metadata: {}
1029+
alias: 0 Greg and Steve
1030+
- if:
1031+
- condition: state
1032+
entity_id: sensor.active_bare_conductive_pin
1033+
state: '1.0'
1034+
then:
1035+
- action: media_player.play_media
1036+
target:
1037+
entity_id: media_player.bedroom_sarah
1038+
data:
1039+
enqueue: replace
1040+
media:
1041+
media_content_id: A:ALBUMARTIST/Kambolo/All
1042+
media_content_type: album
1043+
metadata: {}
1044+
alias: 1 Kambolo
1045+
- if:
1046+
- condition: state
1047+
entity_id: sensor.active_bare_conductive_pin
1048+
state: '2.0'
1049+
then:
1050+
- action: media_player.play_media
1051+
target:
1052+
entity_id: media_player.bedroom_sarah
1053+
data:
1054+
enqueue: replace
1055+
media:
1056+
media_content_id: SQ:19
1057+
media_content_type: favorite_item_id
1058+
metadata:
1059+
title: Cj Story Time
1060+
thumbnail: ''
1061+
media_class: playlist
1062+
children_media_class:
1063+
navigateIds:
1064+
- {}
1065+
- media_content_type: favorites
1066+
media_content_id: ''
1067+
- media_content_type: favorites_folder
1068+
media_content_id: object.container.playlistContainer
1069+
browse_entity_id: media_player.bedroom_sarah
1070+
alias: 2 Stories
1071+
- if:
1072+
- condition: state
1073+
entity_id: sensor.active_bare_conductive_pin
1074+
state: '3.0'
1075+
then:
1076+
- action: media_player.play_media
1077+
target:
1078+
entity_id: media_player.bedroom_sarah
1079+
data:
1080+
enqueue: replace
1081+
media:
1082+
media_content_id: x-file-cifs://minor/Multimedia/Music/Master_Collection/Warren%20Nelson/Riding%20The%20Wind/Disc%201%20-%2008%20-%20Constellation%20LaPointe.flac
1083+
media_content_type: track
1084+
metadata:
1085+
title: Constellation LaPointe
1086+
thumbnail: /api/media_player_proxy/media_player.bedroom_sarah/browse_media/track/x-file-cifs://minor/Multimedia/Music/Master_Collection/Warren%20Nelson/Riding%20The%20Wind/Disc%201%20-%2008%20-%20Constellation%20LaPointe.flac?token=cf773abb8519625b0cef77e12c67d87de021945cc0801de27eaeb4a6a008c450
1087+
media_class: track
1088+
children_media_class:
1089+
navigateIds:
1090+
- {}
1091+
- media_content_type: library
1092+
media_content_id: ''
1093+
- media_content_type: directory
1094+
media_content_id: 'S:'
1095+
- media_content_type: directory
1096+
media_content_id: S://minor/Multimedia/Music/Master_Collection
1097+
- media_content_type: directory
1098+
media_content_id: S://minor/Multimedia/Music/Master_Collection/Warren%20Nelson
1099+
- media_content_type: directory
1100+
media_content_id: S://minor/Multimedia/Music/Master_Collection/Warren%20Nelson/Riding%20The%20Wind
1101+
browse_entity_id: media_player.bedroom_sarah
1102+
- action: media_player.play_media
1103+
target:
1104+
entity_id: media_player.bedroom_sarah
1105+
data:
1106+
enqueue: add
1107+
media:
1108+
media_content_id: x-file-cifs://minor/Multimedia/Music/Master_Collection/Warren%20Nelson/Riding%20The%20Wind/Disc%201%20-%2009%20-%20Over%20to%20Old%20LaPointe.flac
1109+
media_content_type: track
1110+
metadata:
1111+
title: Over to Old LaPointe
1112+
thumbnail: /api/media_player_proxy/media_player.bedroom_sarah/browse_media/track/x-file-cifs://minor/Multimedia/Music/Master_Collection/Warren%20Nelson/Riding%20The%20Wind/Disc%201%20-%2009%20-%20Over%20to%20Old%20LaPointe.flac?token=cf773abb8519625b0cef77e12c67d87de021945cc0801de27eaeb4a6a008c450
1113+
media_class: track
1114+
children_media_class:
1115+
navigateIds:
1116+
- {}
1117+
- media_content_type: library
1118+
media_content_id: ''
1119+
- media_content_type: directory
1120+
media_content_id: 'S:'
1121+
- media_content_type: directory
1122+
media_content_id: S://minor/Multimedia/Music/Master_Collection
1123+
- media_content_type: directory
1124+
media_content_id: S://minor/Multimedia/Music/Master_Collection/Warren%20Nelson
1125+
- media_content_type: directory
1126+
media_content_id: S://minor/Multimedia/Music/Master_Collection/Warren%20Nelson/Riding%20The%20Wind
1127+
browse_entity_id: media_player.bedroom_sarah
1128+
alias: 3 Over to Lapointe
1129+
- if:
1130+
- condition: state
1131+
entity_id: sensor.active_bare_conductive_pin
1132+
state: '4.0'
1133+
then:
1134+
- action: media_player.play_media
1135+
target:
1136+
entity_id: media_player.bedroom_sarah
1137+
data:
1138+
enqueue: replace
1139+
media:
1140+
media_content_id: SQ:19
1141+
media_content_type: favorite_item_id
1142+
metadata:
1143+
title: Cj Story Time
1144+
thumbnail: ''
1145+
media_class: playlist
1146+
children_media_class:
1147+
navigateIds:
1148+
- {}
1149+
- media_content_type: favorites
1150+
media_content_id: ''
1151+
- media_content_type: favorites_folder
1152+
media_content_id: object.container.playlistContainer
1153+
browse_entity_id: media_player.bedroom_sarah
1154+
alias: '4 (fixme: can''t stop the feeling)'
1155+
- if:
1156+
- condition: state
1157+
entity_id: sensor.active_bare_conductive_pin
1158+
state: '5.0'
1159+
then:
1160+
- action: media_player.play_media
1161+
target:
1162+
entity_id: media_player.bedroom_sarah
1163+
data:
1164+
enqueue: replace
1165+
media:
1166+
media_content_id: SQ:19
1167+
media_content_type: favorite_item_id
1168+
metadata:
1169+
title: Cj Story Time
1170+
thumbnail: ''
1171+
media_class: playlist
1172+
children_media_class:
1173+
navigateIds:
1174+
- {}
1175+
- media_content_type: favorites
1176+
media_content_id: ''
1177+
- media_content_type: favorites_folder
1178+
media_content_id: object.container.playlistContainer
1179+
browse_entity_id: media_player.bedroom_sarah
1180+
enabled: false
1181+
- if:
1182+
- condition: state
1183+
entity_id: sensor.active_bare_conductive_pin
1184+
state: '6.0'
1185+
then:
1186+
- action: media_player.play_media
1187+
target:
1188+
entity_id: media_player.bedroom_sarah
1189+
data:
1190+
enqueue: replace
1191+
media:
1192+
media_content_id: SQ:19
1193+
media_content_type: favorite_item_id
1194+
metadata:
1195+
title: Cj Story Time
1196+
thumbnail: ''
1197+
media_class: playlist
1198+
children_media_class:
1199+
navigateIds:
1200+
- {}
1201+
- media_content_type: favorites
1202+
media_content_id: ''
1203+
- media_content_type: favorites_folder
1204+
media_content_id: object.container.playlistContainer
1205+
browse_entity_id: media_player.bedroom_sarah
1206+
enabled: false
1207+
- if:
1208+
- condition: state
1209+
entity_id: sensor.active_bare_conductive_pin
1210+
state: '7.0'
1211+
then:
1212+
- action: media_player.play_media
1213+
target:
1214+
entity_id: media_player.bedroom_sarah
1215+
data:
1216+
enqueue: replace
1217+
media:
1218+
media_content_id: SQ:19
1219+
media_content_type: favorite_item_id
1220+
metadata:
1221+
title: Cj Story Time
1222+
thumbnail: ''
1223+
media_class: playlist
1224+
children_media_class:
1225+
navigateIds:
1226+
- {}
1227+
- media_content_type: favorites
1228+
media_content_id: ''
1229+
- media_content_type: favorites_folder
1230+
media_content_id: object.container.playlistContainer
1231+
browse_entity_id: media_player.bedroom_sarah
1232+
enabled: false
1233+
- if:
1234+
- condition: state
1235+
entity_id: sensor.active_bare_conductive_pin
1236+
state: '8.0'
1237+
then:
1238+
- action: media_player.play_media
1239+
target:
1240+
entity_id: media_player.bedroom_sarah
1241+
data:
1242+
enqueue: replace
1243+
media:
1244+
media_content_id: SQ:19
1245+
media_content_type: favorite_item_id
1246+
metadata:
1247+
title: Cj Story Time
1248+
thumbnail: ''
1249+
media_class: playlist
1250+
children_media_class:
1251+
navigateIds:
1252+
- {}
1253+
- media_content_type: favorites
1254+
media_content_id: ''
1255+
- media_content_type: favorites_folder
1256+
media_content_id: object.container.playlistContainer
1257+
browse_entity_id: media_player.bedroom_sarah
1258+
enabled: false
1259+
- if:
1260+
- condition: state
1261+
entity_id: sensor.active_bare_conductive_pin
1262+
state: '9.0'
1263+
then:
1264+
- action: media_player.play_media
1265+
target:
1266+
entity_id: media_player.bedroom_sarah
1267+
data:
1268+
enqueue: replace
1269+
media:
1270+
media_content_id: SQ:19
1271+
media_content_type: favorite_item_id
1272+
metadata:
1273+
title: Cj Story Time
1274+
thumbnail: ''
1275+
media_class: playlist
1276+
children_media_class:
1277+
navigateIds:
1278+
- {}
1279+
- media_content_type: favorites
1280+
media_content_id: ''
1281+
- media_content_type: favorites_folder
1282+
media_content_id: object.container.playlistContainer
1283+
browse_entity_id: media_player.bedroom_sarah
1284+
enabled: false
1285+
- if:
1286+
- condition: state
1287+
entity_id: sensor.active_bare_conductive_pin
1288+
state: '10.0'
1289+
then:
1290+
- action: media_player.play_media
1291+
target:
1292+
entity_id: media_player.bedroom_sarah
1293+
data:
1294+
enqueue: replace
1295+
media:
1296+
media_content_id: SQ:19
1297+
media_content_type: favorite_item_id
1298+
metadata:
1299+
title: Cj Story Time
1300+
thumbnail: ''
1301+
media_class: playlist
1302+
children_media_class:
1303+
navigateIds:
1304+
- {}
1305+
- media_content_type: favorites
1306+
media_content_id: ''
1307+
- media_content_type: favorites_folder
1308+
media_content_id: object.container.playlistContainer
1309+
browse_entity_id: media_player.bedroom_sarah
1310+
enabled: false
1311+
- if:
1312+
- condition: state
1313+
entity_id: sensor.active_bare_conductive_pin
1314+
state: '11.0'
10191315
then:
10201316
- action: media_player.play_media
10211317
target:
1022-
entity_id: media_player.mama_room
1318+
entity_id: media_player.bedroom_sarah
10231319
data:
1024-
media_content_type: album
1025-
media_content_id: A:ALBUMARTIST/Greg & Steve/On the Move
10261320
enqueue: replace
1321+
media:
1322+
media_content_id: SQ:19
1323+
media_content_type: favorite_item_id
1324+
metadata:
1325+
title: Cj Story Time
1326+
thumbnail: ''
1327+
media_class: playlist
1328+
children_media_class:
1329+
navigateIds:
1330+
- {}
1331+
- media_content_type: favorites
1332+
media_content_id: ''
1333+
- media_content_type: favorites_folder
1334+
media_content_id: object.container.playlistContainer
1335+
browse_entity_id: media_player.bedroom_sarah
1336+
enabled: false
10271337
mode: single
10281338
- id: '1740403673499'
10291339
alias: Turn on floor heat when showering
@@ -1363,3 +1673,12 @@
13631673
media_content_id: A:ALBUMARTIST/Mumford & Sons/Delta
13641674
enqueue: replace
13651675
mode: single
1676+
- id: '1758673497120'
1677+
alias: Enable bare conductive music control when motion is present
1678+
description: ''
1679+
use_blueprint:
1680+
path: freakshock88/motion_illuminance_activated_entity.yaml
1681+
input:
1682+
motion_sensor: binary_sensor.finished_basement_motion_iaszone
1683+
target_entity: automation.bare_conductive_board_media_player_handler
1684+
no_motion_wait: input_number.basement_big_lights_timeout

0 commit comments

Comments
 (0)