majuss / lupupy

A python3 library to control the Lupusec alarm control panel.
MIT License
9 stars 11 forks source link

Temperature sensor / heating #16

Open bhenne opened 7 months ago

bhenne commented 7 months ago

What about an integration for the

How could I support with data from the devices.

suaveolent commented 7 months ago

If you are familiar with your browsers developer tools, you can monitor the network traffic when navigating to your Alam Panels internal server. We are looking for a deviceGet call. If you can paste the response from that call, we can try to add support for these devices.

You can find a how to for Google Chrome here: https://developer.chrome.com/docs/devtools/network

bhenne commented 7 months ago

LUPUSEC ZigBee temperature sensor Mini

{"area": 1, "zone": 49, "type": 54, "type_f": "{D_TYPE_54}", "name": "Schlafzimmer", "tag": "", "cond": "", "cond_ok": "1", "battery": "", "battery_ok": "1", "tamper": "", "tamper_ok": "1", "bypass": 0, "rssi": "{WEB_MSG_STRONG} 7", "resp_mode": [0,0,0,0,0,0], "ammeter": "0", "ver": "RH3052", "bypass_tamper": 0, "sid": "ZS:e8d501", "su": 1, "alarm_status": "", "status_ex": "0", "meta": "", "temp": "18.64", "humidity": "52", "manu": "TUYATEC-riuj5xzs", "serial": "20180608", "profile": 260, "device": 770, "cluster": [1029,1026,3,1,0], "ias_type": 0},

and in case of low battery "battery": "{WEB_MSG_LOW_BATTERY}", "battery_ok": "0",

bhenne commented 7 months ago

Radiator thermostat V2

{"area": 1, "zone": 30, "type": 79, "type_f": "{D_TYPE_79}", "name": "Heizung Kinderzimmer", "tag": "", "cond": "", "cond_ok": "1", "battery": "", "battery_ok": "1", "tamper": "", "tamper_ok": "1", "bypass": 0, "rssi": "{WEB_MSG_STRONG} 9", "resp_mode": [0,0,0,0,0,0], "ammeter": "0", "ver": "TRV_00.00.03.09TC", "bypass_tamper": 0, "sid": "ZS:9dba01", "su": 1, "alarm_status": "", "status_ex": "0", "meta": "", "temp": "19.75", "auto": "1", "valve": "5", "setpoint": "19.5", "manu": "ClimaxTechnology", "serial": "20180308 ", "profile": 260, "device": 769, "cluster": [513,3,1,0], "ias_type": 0},

suaveolent commented 7 months ago

Thanks, thats exactly what we need.

It will take some time, however, to add support for these devices.

bhenne commented 7 months ago

So, you are not using historyGet? At least this could also be used to read out temperature / humidity. But not for control.

device_id: ZS:bf7e01 time_begin: 1709035394 time_end: 1709640194

{ "hisrows": [ { "datetime": "1709640303", "area": "1", "zone": "46", "name": "Kinderzimmer X", "device_id": "ZS:bf7e01", "key": "{WEB_MSG_HISTORY_RH_HUMI}", "value": "{WEB_MSG_RH_HUMIDITY} 49" }, { "datetime": "1709640303", "area": "1", "zone": "46", "name": "Kinderzimmer X", "device_id": "ZS:bf7e01", "key": "{WEB_MSG_HISTORY_TS}", "value": "{WEB_MSG_TS_DEGREE} 19.38" },

bhenne commented 7 months ago

Okay, if you need any further information, I will provide. I could also provide information on some other devices.

suaveolent commented 7 months ago

So, you are not using historyGet? At least this could also be used to read out temperature / humidity. But not for control.

device_id: ZS:bf7e01 time_begin: 1709035394 time_end: 1709640194

{ "hisrows": [ { "datetime": "1709640303", "area": "1", "zone": "46", "name": "Kinderzimmer X", "device_id": "ZS:bf7e01", "key": "{WEB_MSG_HISTORY_RH_HUMI}", "value": "{WEB_MSG_RH_HUMIDITY} 49" }, { "datetime": "1709640303", "area": "1", "zone": "46", "name": "Kinderzimmer X", "device_id": "ZS:bf7e01", "key": "{WEB_MSG_HISTORY_TS}", "value": "{WEB_MSG_TS_DEGREE} 19.38" },

To add support, we first need to identify the device type (type 79 and 54), this is why I needed the deviceGet call.

For setting the thermostat temperature, we might need some more input in the future.

If there are any devices which are also not supported, you can post the deviceGet call for those too.

bhenne commented 7 months ago

Okay, this is all I could provide

2 - Remote Control V2 - https://www.lupus-electronics.de/shop/documents/Handbuch_12108_Fernbedienung%20V2.pdf 4 - Door Contact (V1) 9 - PIR Motion Detector - https://www.lupus-electronics.de/shop/documents/Handbuch_12003_PIR%20Bewegungsmelder.pdf 11 - Smoke Detector V2 - https://www.lupus-electronics.de/shop/documents/Datenblatt_12117_Rauchmelder_V2_20240122.pdf 24 - Power Switch (without power meter) - https://www.lupus-electronics.de/shop/documents/Handbuch_12023_12024_Unterputzrelais.pdf 37 - Key Pad V2 - https://www.lupus-electronics.de/shop/documents/Datenblatt_12106_XT_Keypad_V2_20230522.pdf 45 - Indoor Siren - https://www.lupus-electronics.de/shop/Alarm-Smarthome/Sirenen/LUPUSEC-Innensirene-p.html 46 - Outdoor Siren 48 - Power Switch Meter - https://shop.lupus-direkt.de/de/lupusec-funksteckdose-stromzaehler-xt2-plus.html 54 - Small Zigbee Temperature Sensor - https://www.lupus-electronics.de/shop/en/Alarm-Smarthome/Smarthome-Home-Automation/LUPUS-Small-ZigBee-Temperatursensor-p.html 58 - Heat Detector - https://www.lupus-electronics.de/shop/Alarm-Smarthome/Gefahrenmelder/LUPUSEC-Hitzemelder-p.html 79 - Heating Thermostat - https://www.lupus-electronics.de/shop/Alarm-Smarthome/Smarthome-Hausautomation/LUPUS-Heizk%F6rperthermostat-V2-p.html

78 - GARDENA Smart Sensor 96 - GARDENA Water Control 108 - GARDENA Smart Mower

{"area": 1, "zone": 20, "type": 2, "type_f": "{D_TYPE_2}", "name": "Fernbedienung", "tag": "", "cond": "", "cond_ok": "1", "battery": "", "battery_ok": "1", "tamper": "", "tamper_ok": "1", "bypass": 0, "rssi": "{WEB_MSG_STRONG} 9", "resp_mode": [0,0,0,0,0,0], "ammeter": "0", "ver": "", "bypass_tamper": 0, "sid": "RF:a8750300", "su": 0, "alarm_status": "DISARM", "status_ex": "0", "meta": ""},

{"area": 1, "zone": 4, "type": 4, "type_f": "{D_TYPE_4}", "name": "Tür", "tag": "", "cond": "", "cond_ok": "1", "battery": "", "battery_ok": "1", "tamper": "", "tamper_ok": "1", "bypass": 0, "rssi": "{WEB_MSG_GOOD} 4", "resp_mode": [3,1,1,1,1,0], "ammeter": "0", "ver": "", "bypass_tamper": 0, "sid": "RF:02be0020", "su": 1, "alarm_status": "", "status_ex": "0", "meta": "", "openClose": "0"},

{"area": 1, "zone": 1, "type": 9, "type_f": "{D_TYPE_9}", "name": "Bewegung", "tag": "", "cond": "", "cond_ok": "1", "battery": "", "battery_ok": "1", "tamper": "", "tamper_ok": "1", "bypass": 0, "rssi": "{WEB_MSG_STRONG} 8", "resp_mode": [97,1,97,97,97,0], "ammeter": "0", "ver": "", "bypass_tamper": 0, "sid": "RF:03385830", "su": 1, "alarm_status": "", "status_ex": "0", "meta": ""},

{"area": 1, "zone": 34, "type": 11, "type_f": "{D_TYPE_11}", "name": "Rauchmelder", "tag": "", "cond": "", "cond_ok": "1", "battery": "", "battery_ok": "1", "tamper": "", "tamper_ok": "1", "bypass": 0, "rssi": "{WEB_MSG_STRONG} 9", "resp_mode": [0,0,0,0,0,6], "ammeter": "0", "ver": "", "bypass_tamper": 0, "sid": "RF:06a50240", "su": 1, "alarm_status": "", "status_ex": "0", "meta": ""},

{"area": 1, "zone": 25, "type": 24, "type_f": "{D_TYPE_24}", "name": "Switch Tor", "tag": "", "cond": "", "cond_ok": "1", "battery": "", "battery_ok": "1", "tamper": "", "tamper_ok": "1", "bypass": 0, "rssi": "{WEB_MSG_GOOD} 5", "resp_mode": [0,0,0,0,0,0], "ammeter": "0", "ver": "PRL_00.00.03.04TC", "bypass_tamper": 0, "sid": "ZS:421401", "su": 1, "alarm_status": "", "status_ex": "0", "meta": "", "onOff": "0", "manu": "ClimaxTechnology", "serial": "20161233 ", "profile": 260, "device": 9, "cluster": [6,5,4,3,0], "ias_type": 0, "consumer_id": 0, "always_off": 1, "g_1": 0, "g_2": 0, "g_3": 0, "g_4": 0, "g_5": 0, "g_6": 0, "g_7": 0, "g_8": 0},

{"area": 1, "zone": 5, "type": 37, "type_f": "{D_TYPE_37}", "name": "Keypad", "tag": "", "cond": "", "cond_ok": "1", "battery": "", "battery_ok": "1", "tamper": "", "tamper_ok": "1", "bypass": 0, "rssi": "{WEB_MSG_STRONG} 9", "resp_mode": [0,5,5,5,5,0], "ammeter": "0", "ver": "", "bypass_tamper": 0, "sid": "RF:00481a70", "su": 0, "alarm_status": "", "status_ex": "0", "meta": ""},

{"area": 1, "zone": 14, "type": 45, "type_f": "{D_TYPE_45}", "name": "Innensirene", "tag": "", "cond": "", "cond_ok": "1", "battery": "", "battery_ok": "1", "tamper": "", "tamper_ok": "1", "bypass": 0, "rssi": "{WEB_MSG_STRONG} 9", "resp_mode": [0,5,5,5,5,0], "ammeter": "0", "ver": "", "bypass_tamper": 0, "sid": "RF:0041d3b0", "su": 1, "alarm_status": "", "status_ex": "0", "meta": ""},

{"area": 1, "zone": 3, "type": 46, "type_f": "{D_TYPE_46}", "name": "Aussensirene", "tag": "", "cond": "", "cond_ok": "1", "battery": "", "battery_ok": "1", "tamper": "", "tamper_ok": "1", "bypass": 0, "rssi": "{WEB_MSG_STRONG} 9", "resp_mode": [0,5,5,5,5,0], "ammeter": "0", "ver": "", "bypass_tamper": 0, "sid": "RF:008540b0", "su": 1, "alarm_status": "", "status_ex": "0", "meta": ""},

{"area": 1, "zone": 21, "type": 48, "type_f": "{D_TYPE_48}", "name": "Power Meter Switch", "tag": "", "cond": "", "cond_ok": "1", "battery": "", "battery_ok": "1", "tamper": "", "tamper_ok": "1", "bypass": 0, "rssi": "{WEB_MSG_NA}", "resp_mode": [0,0,0,0,0,0], "ammeter": "1", "ver": "PSMP5_00.00.03.05TC", "bypass_tamper": 0, "sid": "ZS:722201", "su": 1, "alarm_status": "", "status_ex": "0", "meta": "", "manu": "ClimaxTechnology", "serial": "20150425", "profile": 260, "device": 81, "cluster": [1794,6,5,4,3,0], "ias_type": 0, "consumer_id": 0, "always_off": 0, "g_1": 0, "g_2": 0, "g_3": 0, "g_4": 0, "g_5": 0, "g_6": 0, "g_7": 0, "g_8": 0},

{"area": 1, "zone": 41, "type": 54, "type_f": "{D_TYPE_54}", "name": "Mini Temp", "tag": "", "cond": "", "cond_ok": "1", "battery": "", "battery_ok": "1", "tamper": "", "tamper_ok": "1", "bypass": 0, "rssi": "{WEB_MSG_STRONG} 6", "resp_mode": [0,0,0,0,0,0], "ammeter": "0", "ver": "", "bypass_tamper": 0, "sid": "ZS:29f211", "su": 1, "alarm_status": "", "status_ex": "0", "meta": "", "temp": "20.5", "humidity": "46", "manu": "TUYATEC-riuj5xzs", "serial": "20330108", "profile": 260, "device": 770, "cluster": [1029,1026,3,1,0], "ias_type": 0},

{"area": 1, "zone": 29, "type": 58, "type_f": "{D_TYPE_58}", "name": "Fire Heat Detector Kitchen", "tag": "", "cond": "", "cond_ok": "1", "battery": "", "battery_ok": "1", "tamper": "", "tamper_ok": "1", "bypass": 0, "rssi": "{WEB_MSG_STRONG} 9", "resp_mode": [0,0,0,0,0,19], "ammeter": "0", "ver": "", "bypass_tamper": 0, "sid": "RF:01881240", "su": 1, "alarm_status": "", "status_ex": "0", "meta": ""},

{"area": 1, "zone": 13, "type": 79, "type_f": "{D_TYPE_79}", "name": "Heating Thermostat V2, "tag": "", "cond": "", "cond_ok": "1", "battery": "", "battery_ok": "1", "tamper": "", "tamper_ok": "1", "bypass": 0, "rssi": "{WEB_MSG_STRONG} 9", "resp_mode": [0,0,0,0,0,0], "ammeter": "0", "ver": "TRV_00.00.03.09TC", "bypass_tamper": 0, "sid": "ZS:1bc221", "su": 1, "alarm_status": "", "status_ex": "0", "meta": "", "temp": "20.06", "auto": "0", "valve": "15", "setpoint": "20.0", "manu": "ClimaxTechnology", "serial": "201340302 ", "profile": 260, "device": 769, "cluster": [513,3,1,0], "ias_type": 0},

sid / serial values changed.

suaveolent commented 7 months ago

Wow thanks, that is a pretty comprehensive list and helps a lot.

It will take a while, however, to add support for al of them.