Shelly, How do a write to a device API Call

Hi I want to set my Shelly H & T to 0.5 Dec C threshold. ( I know it may reduce the battery life)

The page shows the settings available https://shelly-api-docs.shelly.cloud/#shelly-h-amp-t

But what is the correct syntax

In a web browser I have tried this “192.168.1.20/settings/sensors.temperature_unit=F”
it sends back data but does not change the units

I think I must be missing something.

Can anybody assist?

Regards, Dave

Have you tried this:

http://192.168.1.20/settings/?temperature_units=F

Hi, Just tried it and that worked for Units. Thanks

But strangely it wont work for http://192.168.1.20/settings/?sensors.temperature_offset=2.0

or the one I want http://192.168.1.20/settings/?sensors.temperature_threshold=2.0

Regards, Dave

I think this is the syntax you want to change it:

http://192.168.1.20/settings/?temperature_threshold=2.0

Based on this:

Shelly HT accepts the following extra parameters on it's /settings endpoint:

Parameters
Parameter	Type	Description
actions	hash	For setting actions, see /settings/actions
temperature_units	string	Either C or F
temperature_threshold	number	Temperature delta (in °C) which triggers an update, 0..15
humidity_threshold	number	Humidity delta (in %) which triggers an update, 0..100
external_power	bool	Set if external power supply is installed
temperature_offset	number	Temperature offset (in °C), -50..50
humidity_offset	number	Humidity offset (in %), -50..50

Genius, works a treat, many many thanks for taking the time to reply.

Regards, Dave