Add support for 'chargepoint' service

This commit is contained in:
Adrian Jagielak
2025-07-25 13:32:50 +02:00
parent bf59106953
commit ece156db35
31 changed files with 699 additions and 51 deletions

View File

@@ -41,7 +41,7 @@ export interface BinarySensorComponent {
/**
* Sets the [class of the device](https://www.home-assistant.io/integrations/binary_sensor/#device-class),
* changing the device state and icon that is displayed on the frontend.
* The `device_class` can be `null`.
* The `device_class` defaults to `null`.
*/
device_class?: string | null;
@@ -98,7 +98,10 @@ export interface BinarySensorComponent {
/**
* The name of the binary sensor.
* Can be set to `null` if only the device name is relevant.
*
* It is recommended to set the name when entity identifiers (such as `device_class` or `state_class`)
* do not accurately represent the purpose of the entity, to avoid showing the default 'MQTT' name.
*
* Default: "MQTT binary sensor"
*/
name?: string | null;
@@ -116,6 +119,12 @@ export interface BinarySensorComponent {
/**
* [Icon](https://www.home-assistant.io/docs/configuration/customizing-devices/#icon) for the entity.
*
* The icon must be a Material Design Icons (MDI) string identifier, for example: `mdi:thermometer`, `mdi:battery`, or `mdi:water`.
*
* It is recommended to set the icon when the default icon or other entity identifiers (such as `device_class` or `state_class`)
* do not accurately represent the purpose of the entity. In most cases, relying on the automatic icon selection ensures better consistency
* and compatibility with future updates.
*/
icon?: string;