Hi!
Long story short, I’m trying to add to HAS my beckhoff PLC. I access to my PLC variables via HTTP POST and GET. Anyway this is string i get from my PLC, my blinds position:
GABINET.nActualPosition = 100<br><br><br>Complete
I tried to add some template like this:
cover:
- platform: command_line
covers:
roleta:
command_open: ‘curl -k “http://192.168.0.105/or_debug.asp?set=GABINET.HMI_up:true”’
command_close: ‘curl -k “http://192.168.0.105/or_debug.asp?set=GABINET.HMI_down:true”’
command_stop: ‘curl -k “http://192.168.0.105/or_debug.asp?set=GABINET.HMI_stop:true”’
command_state: ‘curl -k “http://192.168.0.105/or_debug.asp?get=GABINET.nActualPosition”’
value_template: “{%set value=value.split(” = “)[1]%}{{value.split(”<")[0]}}"
But I’ve got an error in configuration. Anyone know how to get this value using templates?