alexryd / homebridge-shelly

Homebridge plugin for Shelly devices
MIT License
297 stars 44 forks source link

Shelly Uni with temp and humidity sensors attached to it. #443

Open perstromqvist opened 1 year ago

perstromqvist commented 1 year ago

Shelly Uni is properly presented to Homebridge, but its attached DHT22-sensor is not shown, nor temp nor humidity.

Pls look at enclosed report to find the values properly presented. Just not exposed to Homebridge.

homebridge-shelly describe 192.168.86.27 output gets. Type: SHUNI-1 CoAP description: {"blk":[{"I":1,"D":"relay_0"},{"I":2,"D":"relay_1"},{"I":3,"D":"adc_0"},{"I":4,"D":"sensor_0"},{"I":5,"D":"sensor_1"},{"I":6,"D":"sensor_2"},{"I":7,"D":"sensor_3"},{"I":8,"D":"sensor_4"},{"I":9,"D":"device"}],"sen":[{"I":9103,"T":"EVC","D":"cfgChanged","R":"U16","L":9},{"I":1101,"T":"S","D":"output","R":"0/1","L":1},{"I":1201,"T":"S","D":"output","R":"0/1","L":2},{"I":2101,"T":"S","D":"input","R":"0/1","L":1},{"I":2102,"T":"EV","D":"inputEvent","R":["S/L",""],"L":1},{"I":2103,"T":"EVC","D":"inputEventCnt","R":"U16","L":1},{"I":2201,"T":"S","D":"input","R":"0/1","L":2},{"I":2202,"T":"EV","D":"inputEvent","R":["S/L",""],"L":2},{"I":2203,"T":"EVC","D":"inputEventCnt","R":"U16","L":2},{"I":3118,"T":"V","D":"adc","U":"V","R":["0/30","-1"],"L":3},{"I":3101,"T":"T","D":"extTemp","U":"C","R":["-55/125","999"],"L":4},{"I":3201,"T":"T","D":"extTemp","U":"C","R":["-55/125","999"],"L":5},{"I":3301,"T":"T","D":"extTemp","U":"C","R":["-55/125","999"],"L":6},{"I":3401,"T":"T","D":"extTemp","U":"C","R":["-55/125","999"],"L":7},{"I":3501,"T":"T","D":"extTemp","U":"C","R":["-55/125","999"],"L":8},{"I":3103,"T":"H","D":"humidity","R":["0/100","999"],"L":4}]} CoAP status: {"G":[[0,9103,1],[0,1101,0],[0,1201,1],[0,2101,0],[0,2102,""],[0,2103,0],[0,2201,0],[0,2202,""],[0,2203,0],[0,3118,0.17],[0,3101,13.8],[0,3103,54]]} HTTP Settings:: {"device":{"type":"SHUNI-1","mac":"34945478EA62","hostname":"shellyuni-34945478EA62","num_outputs":2},"wifi_ap":{"enabled":false,"ssid":"shellyuni-34945478EA62","key":""},"wifi_sta":{"enabled":true,"ssid":"Paradiset","ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"wifi_sta1":{"enabled":false,"ssid":null,"ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"ap_roaming":{"enabled":false,"threshold":-70},"mqtt":{"enable":false,"server":"192.168.86.74:1883","user":"","id":"shellyuni-34945478EA62","reconnect_timeout_max":60,"reconnect_timeout_min":2,"clean_session":true,"keep_alive":60,"max_qos":0,"retain":false,"update_period":30},"coiot":{"enabled":true,"update_period":15,"peer":""},"sntp":{"server":"time.google.com","enabled":true},"login":{"enabled":false,"unprotected":false,"username":"admin"},"pin_code":"","name":"su-NibeEffekt","fw":"20221027-121732/v1.12.1-ga9117d3","factory_reset_from_switch":true,"discoverable":false,"build_info":{"build_id":"20221027-121732/v1.12.1-ga9117d3","build_timestamp":"2022-10-27T12:17:32Z","build_version":"1.0"},"cloud":{"enabled":true,"connected":true},"timezone":"Europe/Stockholm","lat":59.36911,"lng":18.006081,"tzautodetect":true,"tz_utc_offset":3600,"tz_dst":false,"tz_dst_auto":true,"time":"09:25","unixtime":1679559953,"debug_enable":false,"allow_cross_origin":false,"actions":{"active":false,"names":["out_on_url","out_off_url","btn_on_url","btn_off_url","longpush_url","shortpush_url","out_on_url","out_off_url","btn_on_url","btn_off_url","longpush_url","shortpush_url","adc_over_url","adc_under_url","report_url","report_url","report_url","ext_temp_over_url","ext_temp_under_url","ext_temp_over_url","ext_temp_under_url","ext_temp_over_url","ext_temp_under_url","ext_temp_over_url","ext_temp_under_url","ext_temp_over_url","ext_temp_under_url","ext_hum_over_url","ext_hum_under_url"]},"hwinfo":{"hw_revision":"prod-202101","batch_id":0},"mode":"relay","longpush_time":800,"relays":[{"name":"uc1-NibeEffekt","appliance_type":"General","ison":false,"has_timer":false,"default_state":"last","btn_type":"toggle","btn_reverse":0,"auto_on":0,"auto_off":0,"schedule":false,"schedule_rules":[]},{"name":"uc2-NibeEffekt","appliance_type":"General","ison":true,"has_timer":false,"default_state":"on","btn_type":"toggle","btn_reverse":0,"auto_on":7200,"auto_off":0,"schedule":false,"schedule_rules":[]}],"adcs":[{"range":30,"offset":0,"relay_actions":[{"over_threshold":0,"over_act":"disabled","under_threshold":0,"under_act":"disabled"},{"over_threshold":0,"over_act":"disabled","under_threshold":0,"under_act":"disabled"}]}],"ext_sensors":{"temperature_unit":"C"},"ext_temperature":{"0":[{"overtemp_threshold_tC":0,"overtemp_threshold_tF":32,"undertemp_threshold_tC":0,"undertemp_threshold_tF":32,"overtemp_act":"disabled","undertemp_act":"disabled","offset_tC":0,"offset_tF":0},{"overtemp_threshold_tC":0,"overtemp_threshold_tF":32,"undertemp_threshold_tC":0,"undertemp_threshold_tF":32,"overtemp_act":"disabled","undertemp_act":"disabled","offset_tC":0,"offset_tF":0}]},"ext_humidity":{"0":[{"overhum_threshold":0,"underhum_threshold":0,"overhum_act":"disabled","underhum_act":"disabled","offset":0},{"overhum_threshold":0,"underhum_threshold":0,"overhum_act":"disabled","underhum_act":"disabled","offset":0}]},"eco_mode_enabled":true} HTTP Status:: {"wifi_sta":{"connected":true,"ssid":"Paradiset","ip":"192.168.86.27","rssi":-77},"cloud":{"enabled":true,"connected":true},"mqtt":{"connected":false},"time":"09:25","unixtime":1679559953,"serial":605,"has_update":false,"mac":"34945478EA62","cfg_changed_cnt":1,"actions_stats":{"skipped":0},"relays":[{"ison":false,"has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"source":"input"},{"ison":true,"has_timer":false,"timer_started":0,"timer_duration":0,"timer_remaining":0,"source":"http"}],"inputs":[{"input":0,"event":"","event_cnt":0},{"input":0,"event":"","event_cnt":0}],"adcs":[{"voltage":0.17}],"ext_sensors":{"temperature_unit":"C"},"ext_temperature":{"0":{"hwID":"0505","tC":13.8,"tF":56.84}},"ext_humidity":{"0":{"hwID":"0505","hum":54}},"update":{"status":"idle","has_update":false,"new_version":"20221027-121732/v1.12.1-ga9117d3","old_version":"20221027-121732/v1.12.1-ga9117d3"},"ram_total":50784,"ram_free":37904,"fs_size":233681,"fs_free":145580,"uptime":765}

The config looks like: { "id": "34945478EA62", "name": "su-NibeEffekt", "type": "sensor", "sensors": 2, "excludeRelay": false, "humidity": true, "heating": true, "cooling": false, "hysteresis": 0.5, "clearTimeout": 60 }