- Forum
- Alerts, Detections and Station Updates
- Station Updates
- How to send $value from home asstistant entity
How to send $value from home asstistant entity
1 year 8 months ago #6410
by manu0171
How to send $value from home asstistant entity was created 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
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.
- steadramon
- Offline
- Junior Member
Less
More
- Posts: 38
- Thank you received: 12
1 year 8 months ago - 1 year 8 months ago #6412
by steadramon
Replied by steadramon on topic How to send $value from home asstistant entity
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.
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 8 months ago by steadramon.
Please Log in or Create an account to join the conversation.
1 year 8 months ago #6413
by manu0171
Replied by manu0171 on topic How to send $value from home asstistant entity
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
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.
- steadramon
- Offline
- Junior Member
Less
More
- Posts: 38
- Thank you received: 12
1 year 8 months ago #6414
by steadramon
Replied by steadramon on topic How to send $value from home asstistant entity
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
Either way "{{ }}" in the command is what you're looking for
Please Log in or Create an account to join the conversation.
1 year 8 months ago - 1 year 8 months ago #6415
by manu0171
Replied by manu0171 on topic How to send $value from home asstistant entity
Attachments:
Last edit: 1 year 8 months ago by manu0171.
Please Log in or Create an account to join the conversation.
1 year 8 months ago - 1 year 8 months ago #6416
by manu0171
Replied by manu0171 on topic How to send $value from home asstistant entity
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="
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 8 months ago by manu0171.
Please Log in or Create an account to join the conversation.
Moderators: Gamma-Man
- Forum
- Alerts, Detections and Station Updates
- Station Updates
- How to send $value from home asstistant entity
Time to create page: 0.197 seconds