95 lines
3.7 KiB
JSON
95 lines
3.7 KiB
JSON
{
|
|
"services": {
|
|
"reload": {
|
|
"name": "[%key:common::action::reload%]",
|
|
"description": "Reloads all Modbus entities."
|
|
},
|
|
"write_coil": {
|
|
"name": "Write coil",
|
|
"description": "Writes to a Modbus coil.",
|
|
"fields": {
|
|
"address": {
|
|
"name": "Address",
|
|
"description": "Address of the register to write to."
|
|
},
|
|
"state": {
|
|
"name": "State",
|
|
"description": "State to write."
|
|
},
|
|
"slave": {
|
|
"name": "Server",
|
|
"description": "Address of the Modbus unit/server."
|
|
},
|
|
"hub": {
|
|
"name": "Hub",
|
|
"description": "Modbus hub name."
|
|
}
|
|
}
|
|
},
|
|
"write_register": {
|
|
"name": "Write register",
|
|
"description": "Writes to a Modbus holding register.",
|
|
"fields": {
|
|
"address": {
|
|
"name": "[%key:component::modbus::services::write_coil::fields::address::name%]",
|
|
"description": "Address of the holding register to write to."
|
|
},
|
|
"slave": {
|
|
"name": "[%key:component::modbus::services::write_coil::fields::slave::name%]",
|
|
"description": "[%key:component::modbus::services::write_coil::fields::slave::description%]"
|
|
},
|
|
"value": {
|
|
"name": "Value",
|
|
"description": "Value (single value or array) to write."
|
|
},
|
|
"hub": {
|
|
"name": "[%key:component::modbus::services::write_coil::fields::hub::name%]",
|
|
"description": "[%key:component::modbus::services::write_coil::fields::hub::description%]"
|
|
}
|
|
}
|
|
},
|
|
"stop": {
|
|
"name": "[%key:common::action::stop%]",
|
|
"description": "Stops a Modbus hub.",
|
|
"fields": {
|
|
"hub": {
|
|
"name": "[%key:component::modbus::services::write_coil::fields::hub::name%]",
|
|
"description": "[%key:component::modbus::services::write_coil::fields::hub::description%]"
|
|
}
|
|
}
|
|
},
|
|
"restart": {
|
|
"name": "[%key:common::action::restart%]",
|
|
"description": "Restarts a Modbus hub (if running, stops then starts).",
|
|
"fields": {
|
|
"hub": {
|
|
"name": "[%key:component::modbus::services::write_coil::fields::hub::name%]",
|
|
"description": "[%key:component::modbus::services::write_coil::fields::hub::description%]"
|
|
}
|
|
}
|
|
}
|
|
},
|
|
"issues": {
|
|
"missing_modbus_name": {
|
|
"title": "Modbus entry with host {sub_2} missing name",
|
|
"description": "Please add `{sub_1}` key to the {integration} entry with host `{sub_2}` in your configuration.yaml file and restart Home Assistant to fix this issue\n\n. `{sub_1}: {sub_3}` have been added."
|
|
},
|
|
"duplicate_modbus_entry": {
|
|
"title": "Modbus {sub_2} host/port {sub_1} is duplicate, second entry not loaded.",
|
|
"description": "Please update {sub_2} and/or {sub_1} for the entry in your configuration.yaml file and restart Home Assistant to fix this issue."
|
|
},
|
|
"duplicate_entity_entry": {
|
|
"title": "Modbus {sub_1} address {sub_2} is duplicate, second entry not loaded.",
|
|
"description": "An address can only be associated with one entity. Please correct the entry in your configuration.yaml file and restart Home Assistant to fix this issue."
|
|
},
|
|
"duplicate_entity_name": {
|
|
"title": "Modbus {sub_1} is duplicate, second entry not loaded.",
|
|
"description": "An entity name must be unique. Please correct the entry in your configuration.yaml file and restart Home Assistant to fix this issue."
|
|
},
|
|
"no_entities": {
|
|
"title": "Modbus {sub_1} contain no entities, entry not loaded.",
|
|
"description": "Please add at least one entity to Modbus {sub_1} in your configuration.yaml file and restart Home Assistant to fix this issue."
|
|
}
|
|
}
|
|
}
|