Modified rest component for Home Assistant
Manual mode
Place the rest_mod
folder into your custom_components
folder.
Adding custom repository to HACS
Go to the Integrations page in HACS and select the three dots in the top right corner. Select Custom repositories. Add repository url. Category - Integration. Read more on https://hacs.xyz/docs/faq/custom_repositories.
- Sensor is always created, even if it could not get the data.
- Added
payload_template
(sensor/binary_sensor). - Added
state_resource_template
(switch). - Added
resource_template
(switch). - Added configuration variable
proxy_url
(sensor/binary_sensor). Support for http proxies only.
# Example configuration.yaml entry
sensor:
- platform: rest_mod
resource: http://IP_ADDRESS/ENDPOINT
proxy_url: "http://127.0.0.1:3128"