Cool, @dennis84de , thank you, this looks like it might be the answer! Would you mind posting a (scrubbed/obfuscated) json example file? I’m not very good with json beyond the basics. Unless it would just look like the below?
hi there Dennis (think you might be born the same year as me!),
I’m finally getting around to trying to implement this, so far I’ve got this problem in my logs when I try to execute the script from an automation.
I wonder if it’s because my HA is HTTPS? I did modify the link in the script to https, but when I try to test it from my computer https://192.168.1.115:8123/api/states/sensor.last_caller
I get a 401 unauthorised message so I don’t know if the link actually works. I figure if it’s the HA instance itself trying to access that link presumably it works?!
Finally I’m not sure what your script does with the result? It posts it, but where? For me the ideal result would be to adjust another sensor, is this possible?
THANKS!
(Hope you’re well)
EDIT I think I might have figured out what’s going on…I’m running Hass and shell_command won’t work? EDIT2 Don’t worry - I’ve done the same thing in NodeRed. Thank you though!!
@daneboom I am in the middle of migrating from Smartthings / Webcore where I had incoming caller ID that announces calls to my Google home device sourced from Sipgate.
With Webcore, I created a REST endpoint that the incoming Sipgate call sent the caller ID as a payload. How have you managed this with HA using MQTT?