How to send $value from home asstistant entity

More
1 year 2 weeks ago #6410 by manu0171
Hi all,

I cant send value manually with an real number just after &value=, for example
curl -s "http://radmon.org/radmon.php?function=submit&user=sendusername&password=sendpassword&value=20&unit=CPM"

but, if I want to publish value with the command line from homeassistant with the right entity where CPM value is stored, it's not working

I want to use this command line : curl -s "http://radmon.org/radmon.php?function=submit&user=sendusername&password=sendpassword&value=states.sensor.cpm_geiger_counter.state&unit=CPM"

does anyone have the right syntax to be able to use homeassistant entity to submit the value of the CPM counter ?

Thank you in advance
Regards
 

Please Log in or Create an account to join the conversation.

More
1 year 2 weeks ago - 1 year 2 weeks ago #6412 by steadramon
Hiya,

I believe you may want to wrap the input value in "{{ }}" - i.e

{{ states.sensor.cpm_geiger_counter.state }}

I'd recommend using the rest_command integration, rather than calling curl directly.

Check the documents here - https://www.home-assistant.io/integrations/rest_command/

Also - if you have a spare ESP board laying around, check out my latest post, you could try that and upload to radmon straight from a board - and feed homeassistant via MQTT.
Last edit: 1 year 2 weeks ago by steadramon.

Please Log in or Create an account to join the conversation.

More
1 year 2 weeks ago #6413 by manu0171
Thanks,
but I don't want to feed homeassistant, I want to push, submit my homeassistant value to radmon.org , into stations for my profil

Please Log in or Create an account to join the conversation.

More
1 year 2 weeks ago #6414 by steadramon
Yes - the rest integration is for calling out from Homeassistant to other things. And better, more reliable that calling curl in backticks..

Either way "{{ }}" in the command is what you're looking for

Please Log in or Create an account to join the conversation.

More
1 year 2 weeks ago - 1 year 2 weeks ago #6415 by manu0171
I tried the {{ }} but I've a return code which is 3
and no value into the stations page.
I've always 0 CPM into my station



the last test done with :
curl -s "http://radmon.org/radmon.php?function=submit&user=sendusername&password=sendpasswd&value=states.sensor.cpm_geiger_counter.state&unit=CPM"
Attachments:
Last edit: 1 year 2 weeks ago by manu0171.

Please Log in or Create an account to join the conversation.

More
1 year 2 weeks ago - 1 year 2 weeks ago #6416 by manu0171
I'm not an expert so I don't know how to do with your details

I have already pulses into my influxdb
And I can read it with Homeassistant

I just want now to export the value of the entity which contains CPM data to radmon.org in an very easy way like the curl command line, but it seems not working when I write the entity name after the "&value="
Last edit: 1 year 2 weeks ago by manu0171.

Please Log in or Create an account to join the conversation.

Moderators: Gamma-Man
Time to create page: 0.187 seconds
Powered by Kunena Forum
Everything's free. Please support us by considering a donation. Log in first!
Solar powered Raspberry Pi 4 server stats: CPU 39% Memory 13% Swap 17% CPU temp=58.9'C Uptime 51 Days