Hello, Im a new to the HA and i have a problem, how to create entity (sensor/switch) of an one integration.
I have integration called: EasyControl Bosch (GitHub - bosch-thermostat/home-assistant-bosch-custom-component: HA custom component for Bosch thermostats) that integration exposes two services: get and set.
my goal is to make entity using get service to set status of binary_sensor,
second entity would a switch (enable disable using the set service) - perfect solution would be to have ability to set temp/duration params.
here is service detail:
GET:
service: bosch.send_custom_get
data:
uuid: "1111111"
path: "/heatingCircuits/hc1/boostShortcut"
SET:
service: bosch.send_custom_put
data:
uuid: "1111111"
path: "/heatingCircuits/hc1/boostShortcut"
value: "string"
one more question ‘set’ can only take a single string value but that endpoint accepts following data, how i inject that as one single string is it possible or i have to call each service independent (to change temp/duration)?
{
"id": "/heatingCircuits/hc1/boostShortcut",
"type": "boostShortcutStruct",
"writeable": 1,
"recordable": 0,
"used": "true",
"available": "true",
"value": [
{
"mode": "off",
"temperature": 25.0,
"duration": 1,
"zones": [
1
],
"allowedZones": [
1
]
}
]
}