From 9dbf0ab19695a64afe2d83157d11c16618399b91 Mon Sep 17 00:00:00 2001 From: Alexander Cato <52341592+alexander-cato@users.noreply.github.com> Date: Sat, 5 Aug 2023 22:25:19 -0400 Subject: [PATCH] Move battery to diagnostic category --- main.js | 1 + 1 file changed, 1 insertion(+) diff --git a/main.js b/main.js index 6f98628..33c6823 100644 --- a/main.js +++ b/main.js @@ -182,6 +182,7 @@ function register_button(button) { obj.state_topic = buttontopic + "/battery"; obj.unique_id = "Flic_" + button.serialNumber + "_battery"; obj.device_class = "battery"; + obj.entity_category = "diagnostic"; //obj.unit_of_measurement = "%"; //It doesn't seem to actually like this. payload = JSON.stringify(obj, null, 4);