Second post, still very new to this…
I’m trying to set up an automation that fires whenever the luminescence of a Fibaro motion sensor changes (and then do the same with temperature).
When the automation fires, the intention is to send the entity value as part of the URL call to a rest api along with the other parameters the api is expecting.
In my automation.yaml, I currently have:
- id: '1595854635118' alias: 999-FM-FM1L description: Lux on FM1 trigger: device_id: eee0ecfcaf3047479aaab3a3cd10cf3e platform: state entity_id: sensor.fibaro_system_fgms001_zw5_motion_sensor_luminance action: - data:` url_param: ?R=V&A=0&M=999-FM-FM1L&D= {{sensor.fibaro_system_fgms001_zw5_motion_sensor_luminance}} service: rest_command.ccc_send
“urlparam” is the parameter I am sending to the rest api call.
?R=V&A=0&M=999-FM-FM1L&D= is the parameter string it is expecting and then
{{sensor.fibaro_system_fgms001_zw5_motion_sensor_luminance}}
On the occasions that the automation calls the rest api, it is sending as a string ({{sensor.fibaro_system_fgms001 etc), rather than a value.
I’m clearly wide of the mark on something, could someone put me out of my misery and explain what I am doing wrong (small words preferred)?
Thanks