homebridge-shelly icon indicating copy to clipboard operation
homebridge-shelly copied to clipboard

Temperature and humidity AddOn for Shelly 1

Open SirHenryTheNerd opened this issue 4 years ago • 1 comments

Just installed a temperature sensor addon for Shelly 1 and added a humidity and temperature sensor.

Hope the output helps adding the function to the plugin.

Type: SHSW-1 CoAP description: {"blk":[{"I":0,"D":"Relay0"},{"I":1,"D":"Sensors"}],"sen":[{"I":112,"T":"S","D":"Switch","R":"0/1","L":0},{"I":118,"T":"S","D":"Input","R":"0(off)/1(on)/2(longpush)","L":0},{"I":119,"T":"T","D":"External temperature C","R":"-40/80","L":1},{"I":120,"T":"H","D":"External humidity","R":"0/100","L":1}]} CoAP status: {"G":[[0,112,0],[0,118,0],[0,119,19.2],[0,120,42.7]]} HTTP Settings:: {"device":{"type":"SHSW-1","mac":"(...)","hostname":"shelly1-1170C1","num_outputs":1},"wifi_ap":{"enabled":false,"ssid":"shelly1-1170C1","key":""},"wifi_sta":{"enabled":true,"ssid":"AppNet","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},"mqtt":{"enable":false,"server":"192.168.33.3:1883","user":"","id":"shelly1-1170C1","reconnect_timeout_max":60,"reconnect_timeout_min":2,"clean_session":true,"keep_alive":60,"max_qos":0,"retain":false,"update_period":30},"coiot":{"update_period":15},"sntp":{"server":"de.pool.ntp.org","enabled":true},"login":{"enabled":false,"unprotected":false,"username":"admin","password":"admin"},"pin_code":"HadF8*","name":"","fw":"20200320-123430/v1.6.2@514044b4","factory_reset_from_switch":true,"discoverable":false,"build_info":{"build_id":"20200320-123430/v1.6.2@514044b4","build_timestamp":"2020-03-20T12:34:30Z","build_version":"1.0"},"cloud":{"enabled":true,"connected":true},"timezone":"Europe/Berlin","lat":49.0326,"lng":12.2046,"tzautodetect":true,"tz_utc_offset":7200,"tz_dst":true,"tz_dst_auto":true,"time":"21:04","unixtime":1589576650,"hwinfo":{"hw_revision":"prod-2019-08","batch_id":0},"mode":"relay","longpush_time":800,"relays":[{"name":null,"ison":false,"has_timer":false,"default_state":"off","btn_type":"toggle","btn_reverse":0,"auto_on":0,"auto_off":1200,"power":0,"btn_on_url":null,"btn_off_url":null,"out_on_url":null,"out_off_url":null,"longpush_url":null,"shortpush_url":null,"schedule":true,"schedule_rules":["2200-0123456-on","2300-0123456-on","0100-0123456-on","0200-0123456-on","0300-0123456-on","0400-0123456-on","0500-0123456-on","0000-0123456-on"]}],"ext_sensors":{"temperature_unit":"C"},"ext_temperature":[{"overtemp_threshold_tC":0,"overtemp_threshold_tF":32,"undertemp_threshold_tC":0,"undertemp_threshold_tF":32,"overtemp_act":"disabled","undertemp_act":"disabled"}],"ext_humidity":[{"overhum_threshold":0,"underhum_threshold":0,"overhum_act":"disabled","underhum_act":"disabled"}]} HTTP Status:: {"wifi_sta":{"connected":true,"ssid":"SSID","ip":"192.168.0.xxx","rssi":-79},"cloud":{"enabled":true,"connected":true},"mqtt":{"connected":false},"time":"21:04","unixtime":1589576650,"serial":346,"has_update":false,"mac":"C82B961170C1","relays":[{"ison":false,"has_timer":false,"timer_remaining":0}],"meters":[{"power":0,"is_valid":"true"}],"inputs":[{"input":0}],"ext_sensors":{"temperature_unit":"C"},"ext_temperature":{"0":{"tC":19.2,"tF":66.56}},"ext_humidity":{"0":{"hum":42.7}},"update":{"status":"idle","has_update":false,"new_version":"20200320-123430/v1.6.2@514044b4","old_version":"20200320-123430/v1.6.2@514044b4"},"ram_total":50568,"ram_free":36984,"fs_size":233681,"fs_free":153361,"uptime":39166}

SirHenryTheNerd avatar May 15 '20 19:05 SirHenryTheNerd

@SirHenryTheNerd Could you test my PR? Supports sensor or thermostat: https://github.com/alexryd/homebridge-shelly/pull/336

tritter avatar Sep 04 '21 08:09 tritter