Quantcast
Channel: Configuration - Home Assistant Community
Viewing all articles
Browse latest Browse all 95483

Slider to call local network API

$
0
0

@burg93 wrote:

Hey, I’m pretty new to using HA so bear with my limited knowledge please!

I have my blinds hooked up to a DIY motor solution which is controlled via an onboard api on my local network. This allows me to send a GET request to get the current % opened and also to send a PUT request to open to a certain %.

I’m looking to hook this up to a slider in home assistant so I can see the current % and also drag it to open/close as desired. I’m guessing that’ll involve a GET to the local device API on my network to initially set the slider and then a PUT when I drag it and let go at another value. Happy to do some research but don’t really know where to begin. Thanks!

edit: Looks like the below works to get the response back from the API for current state but now just need to find out how to link a slider to a PUT request to update…

sensor:
  - platform: rest
    name: "Blind Status"
    json_attributes:
      - position
    resource: http://192.168.0.53/api/status

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95483

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>