14 Commits

Author SHA1 Message Date
f3341ee064 Improve Home Assistant connection reliability 2026-07-27 16:23:40 -07:00
b7ec774efd Fix disconnect issues (hopefully) 2025-06-24 17:38:55 -07:00
0d418e76c6 implement subscription 2025-06-19 20:43:05 -07:00
dba6754c0c adds lights UI 2025-06-19 19:25:53 -07:00
397add6c8c Reconnect on connection failure 2025-06-19 15:00:19 -07:00
7e10083671 Adds Home Assistant support for Xaibatsu 2025-06-19 01:02:51 -07:00
d1da677932 Fixes issue where connectivity issues can lead to persistent "Offline" status in UI
This fixes the problem where either internet connectivity issues on the device or intermittant
server issues can cause a persistent "OFFLINE" indicator even though that is not the case.

This requires the server protocol to be more granular about what their connection status is,
and adds a new signal from the multiplexer to the MainViewController allowing it to notify the
delegate that an acknowledgement was heard from one of the servers, allowing the main view
controller to update its UI according to whatever status best represents the group of servers
as a whole.

Testing
- This can be tested by using the network link conditioner to simulate connection issues
  *after* the control panel has connected to all servers in the multiplex.
- Tested losing internet connection and regaining internet connection
- Tested starting off with no connection and regaining connection later
2020-07-04 19:43:50 -07:00
c6fa9fe960 Review feedback 2020-05-01 00:16:10 -07:00
1cfdf3552f Makes it so we don't have to wait for all servers to be connected before fetching 2020-04-30 23:36:37 -07:00
1bad5ae5b0 Remove unnecessary eraseToAnyPublisher 2020-04-30 23:21:45 -07:00
a054347f32 HubitatServer: finishes ability to toggle hubitat switches 2020-04-30 19:00:08 -07:00
9bff3dda48 HubitatServer: Adds HubitatServer type and adds it to the multiplexer 2020-03-14 19:53:18 -07:00
918818cd99 ServerMultiplex: Introduces a server mutiplexer
- Also moves all the existing Wemo* stuff over to support the multiplexer
- Moves MainViewController to be the owner of the multiplexer, and its delegate
2020-03-14 18:33:02 -07:00
f1f86ced29 SwitchesViewController: Modernize switches collection view controller
This switches to using the more modern collection view diffable data source API.
Also I moved the action cells into their own section so we don't need to do
arithmetic to determine whether or not a cell is an action cell or a device cell.
2020-03-13 19:36:44 -07:00