I have some Shelly dimmers that don’t have exposed entities for brightness., They can be adjusted via a URL. I have added a rest_command statement to my configuration.yaml file that looks like this:
rest_command:
shelly_dimmer:
url: “http://{{ip}}/rpc/Light.Set?id=0&on={{on_true_false}}&brightness={{bright_lvl}}&transition_duration={{duration_sec}}”
I am trying to get the value from the analog join into the bright_lvl parameter, but not having luck. I am very brand new to HA and YAML.
I have this, but it is incorrect:
from_joins:
- join: d1
script:
service: light.toggle
data:
entity_id: light.living_room_lights
- join: a1
script:
service: rest_command.shelly_dimmer
data:
ip: 192.168.0.174
on_true_false: true
bright_lvl: “{{ value|int }}”
duration_sec: 0
In addition to this, I am seeing this in the logs at the server start:
/config/custom_components/crestron/init.py:83: RuntimeWarning: coroutine ‘async_load_platform’ was never awaited async_load_platform(hass, platform, DOMAIN, {}, config)
6:59:01 PM – (WARNING) Crestron XSIG Integraton (custom integration)
/config/custom_components/crestron/crestron.py:25: RuntimeWarning: coroutine ‘Server.serve_forever’ was never awaited server.serve_forever()
6:59:01 PM – (WARNING) Crestron XSIG Integraton (custom integration)
suggestions?