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

Rest command send state in url

$
0
0

@ligeza wrote:

I’m trying send link like this
http://dane.pvmonitor.pl/pv/get2.php?idl=11107&p=xxxxxxxxNu7G&F4.3=27.988
the begining is always the same: http://dane.pvmonitor.pl/pv/get2.php?idl=11107&p=xxxxxxxxNu7G
I’m trying to use rest command to sent data, but with no luck

rest_command:
  pvmonitor:
    url: http://dane.pvmonitor.pl/pv/get2.php?idl=11107&p=xxxxxxxxNu7G{{pvm}}
    method: GET
{
  'pvm': '&F4.3={{states("sensor.salon_energia")}}'
}

and I’m getting:

Apr 04 15:36:57 HomeAssistant hass[252]: 2020-04-04 15:36:57 DEBUG (MainThread) [homeassistant.core] Bus:Handling <Event call_service[L]: domain=rest_command, service=pvmonitor, service_data=pvm=&F4.3={{ states.sensor.salon_energia }}>
Apr 04 15:36:58 HomeAssistant hass[252]: 2020-04-04 15:36:58 DEBUG (MainThread) [homeassistant.components.rest_command] Success. Url: http://dane.pvmonitor.pl/pv/get2.php?idl=11107&p=xxxxxxxxNu7G&F4.3=%7B%7B+states.sensor.salon_energia+%7D%7D. Status code: 200.

any idea how to fix it?

Posts: 1

Participants: 1

Read full topic


Viewing all articles
Browse latest Browse all 95377

Trending Articles



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