I’ve re-added the cookie sensor from scratch and it’s working fine.
Can you please confirm that:
- You’ve modified the IP and the password in homepilot_cookie.sh
- Your password doesn’t include " or ’ (if you can’t avoid it, escape it by changing it to \" and \’)
What does seem to be an issue right now is that the sensors for the position don’t update, seems like they don’t re-try after failing once, I’ll have to take a look at that.
EDIT: Ouch. Looks like you can’t template REST Sensor headers, damn. That means I have to rewrite the sensor as a command_line sensor with curl, should work then.
EDIT 2: Yep, works with a command_line sensor. Instead of a rest sensor for the position, can you please give this a try?
- platform: command_line
command: 'curl --cookie "HPSESSION={{ states(''sensor.homepilot_cookie'') }}" http://192.168.x.x/devices/2'
name: 'Cover Dining West Position'
value_template: '{{ 100 - float(value_json["payload"]["device"]["capabilities"][0]["value"]) }}'
scan_interval: 20