ioBroker.shelly
ioBroker.shelly copied to clipboard
How to SET temperature and humidity OFFSET in shelly UNI
Shelly device
SHUNI
Protocol (CoAP / MQTT)
COAP
Enhancement: I'd like to SET the temperature offset and humidity offset in a shelly UNI via ioBroker
Currently these aren't listet readable nor writable. I see just the corrected temp and humid values.
the API doc changelog hints at:
* [Shelly 1/1PM] Allow setting of temperature and humidity offsets for temperature add-on via offset_tC, offset_tF parameters under /settings/ext_temperature/{i} endpoint and offset parameter under /settings/ext_temperature/{i} endpoint
Version of nodejs
v14.20.0
Version of ioBroker js-controller
4.0.23
Version of Adapter
6.0.0
Operating system running ioBroker
Linux in Docker in Synology
Is that really a usecase for iobroker? This should be a "set once via app and done" topic or?
I notice a considerable drift in my sensors, compared to a reference, and would like to auto-update the offsets. if the api offers the data, why not display it at least and make it writeable even, via the iobroker adapter?!
I don't own a Shelly UNI. Otherwise I could implement that
Let's implement this together! ✨ Can you guess how it's supposed to work, or need some first hand UNI information?
I cannot find documentation for the Shelly UNI offset. Just for the Shelly 1 / Shelly 1 PM ext sensors (as you mentioned in the issue).
EDIT: Found it: https://shelly-api-docs.shelly.cloud/gen1/#shelly-uni-settings
how would I issue a query that should contain the offsets? The response might be helpful…
@aschmidt74 Can you test if the Shelly UNI provides the following URLs?
/settings/ext_temperature/0/settings/ext_temperature/1/settings/ext_temperature/2/settings/ext_temperature/3/settings/ext_temperature/4
(I don't know why there are 5 states configured: "Shelly UNI supports up to 3xDS18B20 temperature sensors or 1Х humidity sensors")
Hej Matthias!
http://192.168.0.120/settings/ext_temperature/0
[{"overtemp_threshold_tC":34.0,"overtemp_threshold_tF":93.2,"undertemp_threshold_tC":0.0,"undertemp_threshold_tF":32.0,"overtemp_act":"disabled","undertemp_act":"disabled","offset_tC":-1.2,"offset_tF":-2.2},{"overtemp_threshold_tC":0.0,"overtemp_threshold_tF":32.0,"undertemp_threshold_tC":0.0,"undertemp_threshold_tF":32.0,"overtemp_act":"disabled","undertemp_act":"disabled","offset_tC":-1.2,"offset_tF":-2.2}]
http://192.168.0.120/settings/ext_temperature/1 all the way till /20 at least (interesting:)
{"device":{"type":"SHUNI-1","mac":"E09806XXXXXX","hostname":"shellyuni-E09806XXXXXX","num_outputs":2},"wifi_ap":{"enabled":false,"ssid":"shellyuni-E09806XXXXXX","key":""},"wifi_sta":{"enabled":true,"ssid":"MySSID","ipv4_method":"static","ip":"192.168.0.120","gw":"192.168.0.1","mask":"255.255.255.0","dns":"192.168.0.1"},"wifi_sta1":{"enabled":false,"ssid":null,"ipv4_method":"dhcp","ip":null,"gw":null,"mask":null,"dns":null},"ap_roaming":{"enabled":true,"threshold":-60},"mqtt": {"enable":false,"server":"192.168.33.3:1883","user":"","id":"shellyuni-E09806XXXXXX","reconnect_timeout_max":60.000000,"reconnect_timeout_min":2.000000,"clean_session":true,"keep_alive":60,"max_qos":0,"retain":false,"update_period":30},"coiot": {"enabled":true,"update_period":15,"peer":"192.168.0.220:5683"},"sntp":{"server":"time.google.com","enabled":true},"login":{"enabled":true,"unprotected":false,"username":"admin"},"pin_code":"XxXxXx","name":"Hood0","fw":"20220809-125434/v1.12-g99f7e0b","factory_reset_from_switch":true,"discoverable":false,"build_info":{"build_id":"20220809-125434/v1.12-g99f7e0b","build_timestamp":"2022-08-09T12:54:34Z","build_version":"1.0"},"cloud":{"enabled":true,"connected":true},"timezone":"Europe/Vienna","lat":48.180000,"lng":16.400000,"tzautodetect":true,"tz_utc_offset":7200,"tz_dst":false,"tz_dst_auto":true,"time":"11:59","unixtime":1662026391,"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-202008", "batch_id":0},"mode":"relay","longpush_time":800,"relays":[{"name":"Hood plus","appliance_type":"General","ison":false,"has_timer":false,"default_state":"off","btn_type":"detached","btn_reverse":0,"auto_on":0.00,"auto_off":0.20,"schedule":false,"schedule_rules":[]},{"name":"Hood minus","appliance_type":"General","ison":false,"has_timer":false,"default_state":"off","btn_type":"detached","btn_reverse":0,"auto_on":0.00,"auto_off":0.20,"schedule":false,"schedule_rules":[]}],"adcs":[{"range":30,"offset":0.00,"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":34.0,"overtemp_threshold_tF":93.2,"undertemp_threshold_tC":0.0,"undertemp_threshold_tF":32.0,"overtemp_act":"disabled","undertemp_act":"disabled","offset_tC":-1.2,"offset_tF":-2.2},{"overtemp_threshold_tC":0.0,"overtemp_threshold_tF":32.0,"undertemp_threshold_tC":0.0,"undertemp_threshold_tF":32.0,"overtemp_act":"disabled","undertemp_act":"disabled","offset_tC":-1.2,"offset_tF":-2.2}]},"ext_humidity":{"0":[{"overhum_threshold":60.0,"underhum_threshold":0.0,"overhum_act":"disabled","underhum_act":"disabled","offset":-20.0},{"overhum_threshold":0.0,"underhum_threshold":0.0,"overhum_act":"disabled","underhum_act":"disabled","offset":-20.0}]},"eco_mode_enabled":false}
Thanks!
Do you know how to use the browsers developer console? Can you change the offset in the web ui of the Shelly device and send me the HTTP-Request?
if you give me some rope here, I'll manage ... pse make a good guess on the REQ and I'll try and elaborate.
- Open the website of the Shelly device
- Open the developer tools (which browser do you use?)
- Go to the "Network tab"
- Clear the list
- Change the offset setting on the website
- See HTTP request in the network tab
- Copy the request and paste the result
hej Matthias! well done & thank you!
I can see the External sensor temperature offset in IObroker - and can also set it!✅
however! I miss the humidity-offset-section! please have another look at that! ;)
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of the adapter and tell us. Also check that all relevant details, logs and reproduction steps are included and update them if needed. Thank you for your contributions. Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab. Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden. Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist, und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte enthalten sind bzw. aktualisiert diese. Vielen Dank für Eure Unterstützung.
Hej Matthias! Bitte, wenn du 'mal Zeit hast, denkst du noch an den %H-Offset!
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of the adapter and tell us. Also check that all relevant details, logs and reproduction steps are included and update them if needed. Thank you for your contributions. Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab. Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden. Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist, und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte enthalten sind bzw. aktualisiert diese. Vielen Dank für Eure Unterstützung.
Hej Matthias! Hast du vielleicht schon ein Update dazu?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs within the next 7 days. Please check if the issue is still relevant in the most current version of the adapter and tell us. Also check that all relevant details, logs and reproduction steps are included and update them if needed. Thank you for your contributions. Dieses Problem wurde automatisch als veraltet markiert, da es in letzter Zeit keine Aktivitäten gab. Es wird geschlossen, wenn nicht innerhalb der nächsten 7 Tage weitere Aktivitäten stattfinden. Bitte überprüft, ob das Problem auch in der aktuellsten Version des Adapters noch relevant ist, und teilt uns dies mit. Überprüft auch, ob alle relevanten Details, Logs und Reproduktionsschritte enthalten sind bzw. aktualisiert diese. Vielen Dank für Eure Unterstützung.
Hej Matthias, bitte um das nicetohave🙏