在线时间:8:00-16:00
迪恩网络APP
随时随地掌握行业动态
扫描二维码
关注迪恩网络微信公众号
开源软件名称:schemers/homebridge-screenlogic开源软件地址:https://github.com/schemers/homebridge-screenlogic开源编程语言:TypeScript 100.0%开源软件介绍:homebridge-screenlogicNoteI no longer have a Screen Logic controller, so I not maintaing/updating this plugin as of 6/11/21. If someone wants to fork and maintain I can update this REAMDE to point to a new repository. Homebridge using the node-screenlogic library.Screen Logic plug-in forRequirementsThis plugin was recently rewritten in Typescript to use the latest capabilities of Homebridge 1.x, so it requires at a minimum:
Installation
ConfigurationConfiguration samples (edit UDP BroadcastThis performs a UDP broadcast on 255.255.255.255, port 1444, so ensure your network supports UDP broadcasts and the device is on the same subnet. "platforms": [
{
"platform": "ScreenLogic"
}
], Direct connection via IP AddressUse this when you know the local static IP address. "platforms": [
{
"platform": "ScreenLogic",
"ip_address": "192.168.0.100"
}
],
Remote connection via gatewayUse this to go through Pentair servers. "platforms": [
{
"platform": "ScreenLogic",
"username": "Pentair: XX-XX-XX",
"password": "..."
}
], Optional fields:
Sample config{
"platform": "ScreenLogic",
"hidePoolTemperatureSensor": false,
"hideSpaTemperatureSensor": true,
"hideAirTemperatureSensor": true,
"hidePoolThermostat": false,
"hideSpaThermostat": false,
"statusPollingSeconds": 60,
"createLightColorSwitches": true,
"disabledLightColors": ["Pool Mode Party", "Pool Mode Romance"],
"hidden_circuits": "Fountains,Floor Cleaner,Aux 6"
} Implemented HomeKit Accessory TypesAir Temperature
Pool
Spa
Circuits
Pool Heater
Spa Heater
Light Colors
Note on Pool/Spa HeaterThe Pool and Spa Heater accessories are exposed as Thermostats in HomeKit. Since the semantics are slightly different between Pentair heat mode and a thermostat target heating state, a mapping is required. MappingI picked the following mapping, which seemed like the most logical mapping:
The only strange one is mapping An alternative would be to expose three distinct on/off switches that represent each mode, and then ignore state changes (and maybe just allowing Off/Heat). "On" StateThe other compromise is that the pool and spa heaters do not turn the pool and/or spa on or off, they just change the heat mode. i.e., if you want to heat the spa, you need to do two things:
This should work well in practice though, as you will generally have a set target temperature and mode, and then just turn the spa on/off without mucking with the thermostat. This also means that even if the Pool/Spa is turned off and you open the Pool/Spa Heater it mght say "HEATING TO". It will not actually being heating unless the corresponding Pool/Spa switch is turned on. Note on Light ColorsThe light color commands (for modes and colors) are exposed as switches in HomeKit if you enable SemanticsSince I don't have the ability to query the current state of which color/mode is active (Screenlogic app doesn't show it either), I implemented the following behavior:
Single TileInstead of cluttering the room with a bunch of switches, they are all shown in HomeKit as a single accessory called "Light Colors". Tap on the tile to expand, and then turn on the individual switch for the desired mode/color. If you'd like to show them as separate tiles, you can tap the gear icon at the bottom of the expanded tile (or slide up at the bottom) and then select "Show as Separate Tiles". If you are showing as separate tiles and want to revert back to a single tile, you can select any switch and then select "Show as Single Tile" RenamingWhile showing the light switches as separate tiles, you can rename them if desired, which will let you pick a different name to use with Siri. After renaming you can then show as a single tile again if you'd like. SiriYou can set a mode/color by saying the mode/color name:
Which will set the selected mode/color and turn on all the lights if they aren't on. |
2023-10-27
2022-08-15
2022-08-17
2022-09-23
2022-08-13
请发表评论