-
Notifications
You must be signed in to change notification settings - Fork 9
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Configurable property to update with track #14
Conversation
add update propery config entry
update property added
Add update_property to example conf
For #7 |
Thanks for this PR :) I was actually planning in having the possibility to link entities to various properties:
|
Ok I was just trying to do something :-) |
Highly appreciated! :) |
I would give it a shot if you'd point me into the right direction on how to expand the template into a result variable. |
I always find it easier to look into existing components that already support the feature I want to implement and learn from their implementations. Here is a very simple component that uses templates: https://github.com/home-assistant/core/blob/0e98bc5ea23cd15ecdc17a8318250b4a8fbe9478/homeassistant/components/rest_command/__init__.py |
Major refactor yesterday, please have a look |
Nice, I see the |
I'm afraid that will not be enough, tonight I might have some extra time to try and address this |
I think to add a configurable, optional
So |
a1f5704 implements this |
you can type any conversion you wish into the template to set the hasp objective property, now I'll work on the event side |
Done in 4795760 |
What's the syntax? For MQTT message sent by the plate: To achieve something like this: event:
"changed":
service: climate.set_temperature
data_template:
entity_id: climate.futes
temperature: "{{ val / 10 }}" |
|
also you don't need "data_template" it's just "data"... you can test the service call in developer-tools/server and then copy & paste to the configuration.yaml |
Excellent. and
|
does it work or not ? You should join the hasp-lvgl discord ;) |
it works but it needs some throttling |
can't do much from HA side... if the events are generated, they are being processed |
There's a race causing this: I think what happens is:
So what should be done perhaps is to avoid setting the |
to be able to update not just "val" but anything else