| Author |  | 
      
        | PhilC Newbie
 
  
  
 Joined: March 18 2004
 Location: United Kingdom
 Online Status: Offline
 Posts: 39
 | 
          Good day to you all,
           | Posted: March 25 2023 at 11:14 | IP Logged |   |  
           | 
 |  
 I am looking for a thermostat to control my ac unit that
 has a simple HTTP rest API that I can issue simple
 commands to such as 'http://thermostat?
 mode=cool&temp=72'. Through my recent quest with Shelly
 units (which I absolutely love!), I spent what seem like
 days trawling through unspeakably complicated
 documentation with out of date commands to reach a point
 where I could simply turn a light on! I am hoping to find
 something that has some understandable documentation and
 complete local control. I am using Powerhome as a back
 end processor to commands issued from a web API I am
 writing in node.js/electron. Does such a thing exist?
 
 Thanks,
 Phil
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | gg102 Senior Member
 
  
 
 Joined: January 29 2013
 Location: United States
 Online Status: Offline
 Posts: 246
 | 
          Hi Phil,
           | Posted: March 25 2023 at 11:33 | IP Logged |   |  
           | 
 |  
 I also use Shelly devices and love them as well.
 One of the problems with the Shelly doc is that there are two different generations of the devices.
 That complicates finding the proper set of commands.
 
 For their light bulbs, this may assist you:
 the {} are PH global variables that I set.
 You can hard code them if you prefer.
 
 for example:
 {SH-ADDR_TABLE_LAMP} IP address of the device: 192.168.x.y
 {DIM_AMOUNT} your brightness amount (range 0 to 100)
 {SHELLY_TRANSITION_TIME} MS of transition time 2500 seems good (range is 0-4000)
 {SH-URL_METHOD}  I use method 13  (PH setting)
 {SH-URL_TIMEOUT} I use 6000 (PH setting in MS)
 
 So a command to turn it on would be:
 ph_geturl1("http://{SH-ADDR_TABLE_LAMP}/light/0?turn=on&whit e=2&brightness={DIM_AMOUNT}&transition={SHELLY_TRANSITION_TI ME}",{SH-URL_METHOD},{SH-URL_TIMEOUT})
 
 Command to turn it off would be:
 ph_geturl1("http://{SH-ADDR_TABLE_LAMP}/light/0?turn=off&tra nsition={SHELLY_TRANSITION_TIME}",{SH-URL_METHOD},{SH-URL_TI MEOUT})
 
 I'd be interested in a thermostat, but like you, haven't found anything to my liking.
 Let me know if you find anything.
 
 Thanks.
 
 
 
 
 | 
       
        | Back to Top |     | 
       
       
        |  | 
        | PhilC Newbie
 
  
  
 Joined: March 18 2004
 Location: United Kingdom
 Online Status: Offline
 Posts: 39
 | 
          Thanks gg, it was actually your original post some time
           | Posted: March 25 2023 at 13:03 | IP Logged |   |  
           | 
 |  back that pointed me to Shelly having resisted changing
 my ancient but working X10 system for years! I have now
 got to the point where I sort of understand the Shelly
 docs and am now using chatGPT to write some pretty cool
 functions for me!
 
 The only Thermostat that seems to come close is made by
 Radio Thermostat, however, the reviews are pretty poor
 which has prompted me to seek out other solutions.
 
 Although unrelated, whilst looking for similar HTTP
 enabled devices, I today came across a REST API
 controlled IR blaster which looks fantastic. Now to ditch
 the usb-uirt!
 https://look-
 in.club/en/devices/remote
 | 
       
        | Back to Top |     | 
       
       
        |  |