Support Room Sensors
Support for room sensors would be fantastic since there does not seem to be any way to automate which sensors the thermostat uses even within the Sensi app. Being able to use home assistant to enable/disable specific sensors in automations would be game changing for me. In another issue it was mentioned that you do not have any sensors to test with, I am happy to send one to you if that would help get them added to the integration. I don't have any real development skills or I would have a go at reverse engineering the traffic myself.
I would like to try working on this. This would help me quite a bit as well since I have a few of these sensors sprinkled around my house.
So far I have struck out trying to figure out how to connect my room sensors to HA. I am able to see that the sensors do show up in the same place that demand_status lives
'sensors': {'active_group_id': 1, 'num_participating_sensors': 2, 'num_sensors': 4, 'sensor_errors': []},
But there is no useful information about the actual sensors so there must be another endpoint or something to interact with them.
num_participating_sensors refers to the sensors that are being used to determine the average temperature to use.
I have done some digging into this and have found the following url and endpoints
https://stage.sensiapi.com/
"/thermostat/v1/{icd_id}/sensors/{sensor_id}" "/thermostat/v1/{icd_id}/sensor-summary" "/sensorGroups/" "/sensorGroup/"
SensorDetails(name=, temperature=, humidity=, signalStrength=, battery=, sensorId=, firmwareVersion=, showHumidity=, sensorError=)
SensorData(id=, name=, tempAndHumidity=, battery=, isActive=, hasError=)
SensorPayload(thermostat=, sensors=, stats=, groupId=, sensorsWithErrors=)
SensorViewData(id=, name=, type=)
SensorGroupViewData(groups=, selectedGroupId=)
I'm not really sure if any of this is useful or how to actually use it, but I think if I could authenticate to
https://stage.sensiapi.com/thermostat/v1/{icd_id}/sensor-summary
OR
https://stage.sensiapi.com/thermostat/v1/{icd_id}/sensors/{sensor_id}
It would be helpful.
I tried authenticating with the same token used in _setup_headers but I wasn't able to get it working.