mirror of
https://github.com/magico13/ha-emporia-vue.git
synced 2026-01-08 20:07:56 -05:00
Merge branch 'master' into 2025-12
This commit is contained in:
7
custom_components/emporia_vue/icons.json
Normal file
7
custom_components/emporia_vue/icons.json
Normal file
@@ -0,0 +1,7 @@
|
|||||||
|
{
|
||||||
|
"services": {
|
||||||
|
"set_charger_current": {
|
||||||
|
"service": "mdi:ev-station"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
@@ -9,5 +9,5 @@
|
|||||||
"issue_tracker": "https://github.com/magico13/ha-emporia-vue/issues",
|
"issue_tracker": "https://github.com/magico13/ha-emporia-vue/issues",
|
||||||
"requirements": ["pyemvue==0.18.9"],
|
"requirements": ["pyemvue==0.18.9"],
|
||||||
"single_config_entry": true,
|
"single_config_entry": true,
|
||||||
"version": "0.11.2"
|
"version": "0.11.3"
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -1,27 +1,15 @@
|
|||||||
set_charger_current:
|
set_charger_current:
|
||||||
# Service name as shown in UI
|
# If the service accepts entity IDs, target allows the user to specify entities by entity, device, or area.
|
||||||
name: Set Charger Current
|
|
||||||
# Description of the service
|
|
||||||
description: Sets the charging current for an EVSE/Charger.
|
|
||||||
# If the service accepts entity IDs, target allows the user to specify entities by entity, device, or area. If `target` is specified, `entity_id` should not be defined in the `fields` map. By default it shows only targets matching entities from the same domain as the service, but if further customization is required, target supports the entity, device, and area selectors (https://www.home-assistant.io/docs/blueprint/selectors/). Entity selector parameters will automatically be applied to device and area, and device selector parameters will automatically be applied to area.
|
|
||||||
target:
|
target:
|
||||||
entity:
|
entity:
|
||||||
integration: emporia_vue
|
integration: emporia_vue
|
||||||
device_class: outlet
|
device_class: outlet
|
||||||
device:
|
|
||||||
manufacturer: Emporia
|
|
||||||
# Different fields that your service accepts
|
# Different fields that your service accepts
|
||||||
fields:
|
fields:
|
||||||
# Key of the field
|
# Key of the field
|
||||||
current:
|
current:
|
||||||
# Field name as shown in UI
|
|
||||||
name: Charging Current
|
|
||||||
# Description of the field
|
|
||||||
description: The desired charging current in Amps.
|
|
||||||
# Whether or not field is required (default = false)
|
# Whether or not field is required (default = false)
|
||||||
required: true
|
required: true
|
||||||
# Advanced fields are only shown when the advanced mode is enabled for the user (default = false)
|
|
||||||
advanced: false
|
|
||||||
# Example value that can be passed for this field
|
# Example value that can be passed for this field
|
||||||
example: 6
|
example: 6
|
||||||
# The default field value
|
# The default field value
|
||||||
|
|||||||
@@ -44,5 +44,17 @@
|
|||||||
"reauth_successful": "[%key:common::config_flow::abort::reauth_successful%]",
|
"reauth_successful": "[%key:common::config_flow::abort::reauth_successful%]",
|
||||||
"reconfigure_successful": "[%key:common::config_flow::abort::reconfigure_successful%]"
|
"reconfigure_successful": "[%key:common::config_flow::abort::reconfigure_successful%]"
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"services": {
|
||||||
|
"set_charger_current": {
|
||||||
|
"name": "Set charger current",
|
||||||
|
"description": "Sets the charging current for an EVSE/charger",
|
||||||
|
"fields": {
|
||||||
|
"current": {
|
||||||
|
"name": "Charging current",
|
||||||
|
"description": "The desired charging current in amps"
|
||||||
|
}
|
||||||
|
}
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|||||||
@@ -65,7 +65,6 @@ async def async_setup_entry(
|
|||||||
devices: list[VueDevice] = await loop.run_in_executor(None, vue.get_devices)
|
devices: list[VueDevice] = await loop.run_in_executor(None, vue.get_devices)
|
||||||
for device in devices:
|
for device in devices:
|
||||||
if device.outlet or device.ev_charger:
|
if device.outlet or device.ev_charger:
|
||||||
await loop.run_in_executor(None, vue.populate_device_properties, device)
|
|
||||||
device_information[str(device.device_gid)] = device
|
device_information[str(device.device_gid)] = device
|
||||||
|
|
||||||
async def async_update_data():
|
async def async_update_data():
|
||||||
|
|||||||
@@ -44,5 +44,17 @@
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
},
|
||||||
|
"services": {
|
||||||
|
"set_charger_current": {
|
||||||
|
"description": "Sets the charging current for an EVSE/charger",
|
||||||
|
"fields": {
|
||||||
|
"current": {
|
||||||
|
"description": "The desired charging current in amps",
|
||||||
|
"name": "Charging current"
|
||||||
|
}
|
||||||
|
},
|
||||||
|
"name": "Set charger current"
|
||||||
|
}
|
||||||
}
|
}
|
||||||
}
|
}
|
||||||
Reference in New Issue
Block a user