From a4893747bbc6085069f887d9d17a1b17c80ca80f Mon Sep 17 00:00:00 2001 From: Nicu Hodos Date: Tue, 21 May 2024 00:09:42 +0200 Subject: [PATCH] moved temp sensor next to servers --- gateway/include/devices.h | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/gateway/include/devices.h b/gateway/include/devices.h index 96cef8c..bc90c58 100644 --- a/gateway/include/devices.h +++ b/gateway/include/devices.h @@ -17,7 +17,7 @@ auto gatewayDevice = &DeviceConfig::create(MAIN_DEVICE_ID).withName("RC Gateway" namespace OilTank { Sensor* buildRoomSensor(const char* id) { DeviceConfig* device = &DeviceConfig::create(id) - .withName("Oil tank room") + .withName("Servers room") .withManufacturer("Atmel") .withModel("AtTiny85") .withArea("Basement") @@ -26,7 +26,7 @@ namespace OilTank { .asDevice(device) .withValueTemplate("{{ value_json.sensor.temperature }}") .asDiagnostic(new VoltageSensor{id, "Battery voltage", "{{ value_json.sensor.diagnostic.voltage }}"}) - .asDiagnostic(new BatterySensor{id, "Battery level", "{{ ((states('sensor.oil_tank_room_battery_voltage')|float-2.5)|round(2)*100/2)|int }}"}) + .asDiagnostic(new BatterySensor{id, "Battery level", "{{ ((states('sensor.servers_room_battery_voltage')|float-2.5)|round(2)*100/2)|int }}"}) .build(); }