Closed maykar closed 6 years ago
I'm not sure what you're trying to do - can you show me an example?
I'm not using the jsonrest component anymore - what I was trying to do has been eventually migrated in a different form in the rest component. For example:
- platform: rest
resource: !secret samygo_tv_living_channelinfo
method: GET
name: TV Living ChannelInfo
json_attributes:
- source
- pvr_status
- power_state
- tv_mode
Are you trying to read resource from a template?
On Thu, Aug 9, 2018 at 9:56 PM, MKR notifications@github.com wrote:
This might be a big ask as I know this isn't supported in the vanilla HA restful sensor, but it would be amazing to be able to use a template as an URL .
— You are receiving this because you are subscribed to this thread. Reply to this email directly, view it on GitHub https://github.com/mad-ady/home-assistant-customizations/issues/1, or mute the thread https://github.com/notifications/unsubscribe-auth/AEDvKv7kfvbbyVvggo5pKMZvX24VRItOks5uPIXhgaJpZM4V2OyQ .
Oh, wow. Wasn't aware that was in there now. Thats great, thanks for that. Yup, that's exactly what I'm trying to accomplish. The api I'm attempting to retrieve requires a start and end date in the url.
This might be a big ask as I know this isn't supported in the vanilla HA restful sensor, but it would be amazing to be able to use a template as an URL in your modified jsonrest sensor .