If anybody can give an example of feedback for a simple dimmer switch I would appreciate it, trust me I’ve been trying daily since I posted last and though I understand way more now I still am having trouble, I wouldn’t be asking if I didn’t try to solve myself.
I am not using this component with just HASS, which syncs fine except after a reboot. My problem is I have switches and TSW’s and if I turn them on or off, that doesn’t reflect on HASS pages, so I do need to use the to_joins and from_joins from everything I can tell.
The help file shows examples for everything but a lighting switch in the readme, and trust me I’ve tried every iteration of that code to get things to properly track state, and obviously I am missing something.
I took an example from earlier in this thread and already it, and I can see the value of my light when it’s off it 0 and on its 257
to_joins:
- join: a3
value_template: >
{% if is_state('light.office','off') %}
{{ 0 }}
{% else %}
{{ state_attr('light.office', 'brightness') }}
{% endif %}
If I paste in the Template section of Developer tools, I can see the feedback, where I am somewhat confused is, does this get added into my configuration.yaml?
I understand where the scripts go and where you make them, and I know that once made from the UI they end up in scripts.yaml, this is where my next problem occurs.
Again using the example code above I take this code for the “from_joins”
from_joins:
- join: a3
script:
service: light.turn_on
target:
entity_id: light.office
data:
brightness: “{{ value|int }}”
Now if I go to the “Script” section of Hass and I have the visual UI, I can put in a couple of these params like the service and entity but the brightness value I don’t see no way to do that, I try switching to YAML and paste it in and get errors so I am stuck, for well over a week now trying everything under the sun.
I really didn’t want to ask for help, but I tried for more than a person should have to, lol…seriously feeling defeated with something that seems like it should be easy but I don’t have a clear example.
I don’t need to be handheld or need someone to do everything for me, but I have to say I’m confused and need some direction.
-
If my dimmer switches when pressed on/off do not update on my interface, then I need the to_joins and from_joins? From everything I see in my system, I need something to give me feedback from the switches themselves.
-
If yes, then I need a template for my “to_joins” and I assume my code above is correct and that template code gets posted inline in my config file? If not, where exactly does it go and is that code correct?
-
I know I need to make a script for the “from joins”, as mentioned I tried using the script section but the code I posted above gives an error, am I supposed to be posting it in the script section of developer tools, I can’t seem to add the brightness attribute, when I try to add in yaml it gives me an error.
I thought maybe I just put it in scripts.yaml and make sure I have the right indentation, which it seemed I did, but again, something just isn’t right, or I’m missing some important info…lol.
Last but not least, I plan to use this with more than a single light and will need to add 22 dimmers in total, so do all my light entities go into a single string or something and then they can use the same block of code?
Any help is truly appreciated. Trust me I probably spent over 30 hours trying everything, watching videos, reading the forums and trying so many different things.
At this point, if someone needs a donation to assist just private message me, if the answers were obvious I would have found them by now or I’m missing something I don’t understand yet.
During all this madness, I managed to configure my Doorbird doorbell to send me photos and play the Jetsons doorbell over all my Echos, so hey, I’m learning and not afraid to admit I’m still very much a noob to HASS