athom-tech / athom-configs

Athom Technology Official Center
MIT License
190 stars 127 forks source link

Update athom-smart-plug-v2.yaml to Categorize Config/Diag in HA and add meaningful WiFi, Uptime and Last Restarted sensors #40

Closed Roving-Ronin closed 4 months ago

Roving-Ronin commented 4 months ago

Changes:

entity_category: diagnostic and entity_category: config - In HA this places these sensors and configuration items in the correct location, when viewing the individual devices in the ESP Home integration

Uptime Sensor & WiFi Signal - Change to internal, whilst allowing their use in sensors that format the output to be more useful or meaningful

WiFi Strength - Add sensor that reports signal as a %, as compared to Db that is meaningless to most people. Pulls data from WiFi Signal sensor.

Device Uptime - Add a sensor that uses Uptime Sensor to provide a formatted output of the days/hours/seconds the device has been up, as opposed to a xxxxxx seconds, that to be meaningful needs deciding with a calculator

sntp_time - Add a sensor that reports the actual date and time of when the device was last restarted