summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
-rw-r--r--files/common/openwrt/sensors.module_lua2
-rw-r--r--inventory/host_vars/ch-sensors1.yml2
2 files changed, 3 insertions, 1 deletions
diff --git a/files/common/openwrt/sensors.module_lua b/files/common/openwrt/sensors.module_lua
index 0767733d..4139f1aa 100644
--- a/files/common/openwrt/sensors.module_lua
+++ b/files/common/openwrt/sensors.module_lua
@@ -149,7 +149,7 @@ function _M.w1_device_path(address)
end
function _M.w1_device_family_and_serial(address)
- local family, serial = string.match(address, '^(%d+)%-(%d+)$')
+ local family, serial = string.match(address, '^(%x+)%-(%x+)$')
if not family then return nil, "unable to extract device family and serial from 1-wire address " .. address end
return family, serial
end
diff --git a/inventory/host_vars/ch-sensors1.yml b/inventory/host_vars/ch-sensors1.yml
index d602fff7..2fca0d73 100644
--- a/inventory/host_vars/ch-sensors1.yml
+++ b/inventory/host_vars/ch-sensors1.yml
@@ -30,3 +30,5 @@ sensornode_sensors:
w1:
- name: hugo
address: 28-012113511280
+ - name: seppi
+ address: 28-3c01d6073924