Про pidfile видимо просто copy-paste.
Мой набор шаблонов:
"templates": [
{
"template": "sensor",
"type": "DevGenericSensor",
"default": [ "value" ]
},
{
"template": "Lux",
"type": "DevLuminosity",
"default": [ "lux" ]
},
{
"template": "rgb",
"type": "DevRGBLight",
"controls": [
{
"name": "color",
"type": "rgb"
},
{
"name": "dimmable",
"const": "0"
},
{
"name": "whitechannel",
"const": "0"
}
]
},
{
"template": "rgb_switch",
"type": "DevRGBLight",
"controls": [
{
"name": "color",
"type": "rgb"
},
{
"name": "Status",
"type": "bool"
},
{
"name": "dimmable",
"const": "0"
},
{
"name": "whitechannel",
"const": "0"
}
]
},
{
"template": "CO2",
"type": "DevCO2",
"default": [ "concentration" ]
},
{
"template": "sound_level",
"type": "DevNoise",
"default": [ "sound_level" ]
},
{
"template": "atmospheric_pressure",
"type": "DevPressure",
"default": [ "atmospheric_pressure" ]
},
{
"template": "rel_humidity",
"type": "DevHygrometry",
"default": [ "rel_humidity" ]
},
{
"template": "temperature",
"type": "DevTemperature",
"default": [ "temperature" ]
},
{
"template": "voltage",
"type": "DevGenericSensor",
"default": [ "voltage" ],
"controls": [
{
"name": "unit",
"const": "V"
},
{
"name": "Value",
"slot": "slot0"
}
]
},
{
"template": "resistance",
"type": "DevGenericSensor",
"default": [ "resistance" ]
},
{
"template": "temp_humidity",
"type": "DevTempHygro",
"controls": [ "temp", "hygro" ]
},
{
"template": "motion",
"type": "DevMotion",
"controls": [
{
"name": "Armable",
"const": "0"
},
{
"name": "Ackable",
"const": "0"
},
{
"name": "Armed",
"const": "1"
},
{
"name": "Tripped",
"slot": "slot0"
}
]
},
{
"template": "light",
"type": "DevSwitch",
"controls": [
{ "name": "Status" }
],
"default": [ "switch" ]
},
{
"template": "fan",
"type": "DevSwitch",
"controls": [
{ "name": "Status" }
],
"default": [ "fan" ]
},
{
"template": "switch",
"type": "DevSwitch",
"controls": [
{ "name": "Status" }
]
},
{
"template": "dimmable_light",
"type": "DevDimmer",
"controls": [
{
"name": "Status",
"type": "bool"
},
{
"name": "Level",
"type": "percent",
"slot": "slot0"
}
]
},
{
"template": "dimmer",
"type": "DevDimmer",
"controls": [
{
"name": "Status",
"type": "bool"
},
{
"name": "Level",
"type": "percent",
"slot": "slot0"
}
],
"default": [ "range" ]
},
{
"template": "shutter",
"type": "DevShutter",
"controls": [
{
"name": "stopable",
"const": "1"
},
{
"name": "pulseable",
"const": "1"
},
{
"name": "Level",
"type": "percent",
"slot": "slot3"
}
],
"default": [ "range" ]
},
{
"template": "binary_sensor",
"type": "DevDoor"
},
{
"template": "alarm",
"type": "DevDoor"
},
{
"template": "heater",
"type": "DevThermostat",
"controls": [
"curtemp",
"cursetpoint",
{
"name": "curmode",
"values_map": [
{
"wb": "0",
"ih": "off"
},
{
"wb": "1",
"ih": "on"
}
]
},
{
"name": "availablemodes",
"const": "on,off",
"slot": ""
}
]
}
],
Да, попробую. Давно хотел научиться получить данные об истории через mqtt-rpc…