LAB02-Research / HASS.Agent

Windows-based client for Home Assistant. Provides notifications, quick actions, commands, sensors and more.
https://hassagent.lab02-research.org
MIT License
1.53k stars 68 forks source link

Feature: Unit of measurement for custom sensors #193

Open lazi3b0y opened 1 year ago

lazi3b0y commented 1 year ago

Describe the solution you'd like Adding a option to set the unit_of_measurement seen in HA when adding custom performance monitor sensors.

LAB02-Admin commented 1 year ago

Hey @lazi3b0y, agreed, it's on the to-do list: hassagent-10

pabloazurduy commented 1 year ago

hey @lazi3b0y is there any workaround to change the measurement unit ?

  1. I've read that is possible via a template sensor
  2. I assume that is possible to add the mqtt thread directly as a sensor in the config (I've already did that with other sensors around my house) but no idea if overwritten it will create some conflict

Is there a way of doing that, maybe adding a custom sensor in the agent code ? Thanks in advance !