Automation Set value of a Z-Wave Value and Helpers

Hi everybody, and thank you for the HA Software.

I’m just started with HA and have already knowledge in Domoticz but it’s maybe the same change from a Volkswagen to F1 Car.
Anyhow still struggle to integrate my Helper Values in to my Automation, to change the Heating value from when I switch from Present to Away.
Can anybody tell me why it works with fixed Values and not with the Helper Values?
Thank you for any HELP here is my YAML.
device_id: a77824dcc3f51c1576e9460822d63cc7
domain: zwave_js
type: set_value
command_class: 67
property: setpoint
value: input_number.temprature_away
property_key: “1”
wait_for_result: false

Are you unable to use the climate entity to do this, using the climate.set_temperature service? https://www.home-assistant.io/integrations/climate The zwave_js.set_value service is rarely needed.

The value: input_number.temprature_away is not valid, you need a template to extract the state from an entity, such as value: "{{ states('input_number.temprature_away') }}". I don’t think device automations allow templates, if not use a normal service call instead. https://www.home-assistant.io/integrations/zwave_js#service-zwave_jsset_value

Thank you Freshcoast, for your feedback, but as I mentioned I’m brand new to home.assistant and I’m in a try and error approach using the Automation UI, under action I was unable to find any Services, maybe I got the wrong tutorial How To Use HELPERS In Home Assistant - TUTORIAL where my case was exactly implemented.

It’s fixed now, after the installation of Better Thermostat UI everything worked perfectly.

1 Like

I was using service switch: turn on in the automation but realized that sometimes the node goes dead and activating it from zwave js ui would bring it back.

So to make my system more reliable I wanted to make a automation that would set the brightness via a my input_number helper.

but I’m getting some weird errors.
if I put


 value: "{{ states('input_number.light_level' )}}"

I get an error because it is a string, if I put and hit save

 value: {{ states('input_number.light_level' )}}

I get:

 value:
    "[object Object]": null

Is there another way to do this?

action:
  - service: zwave_js.set_value
    data:
      command_class: "38"
      property: currentValue
      value: "{{ states('input_number.light_level' )}}"
    target:
      entity_id:
        - light.lights_audit_l
        - light.lights_audit_r

Pinging the nodes is a way around this, there are some automations in the forum to do it automatically.

How about

value: "{{ states('input_number.light_level') | int }}"`

(from docs).

The number also needs to be within range 0 (off), 1-99, 255 (last on level).

so in the templates I tried

"{{ states('input_number.light_level') | int }}"

but it still comes up as a string. should I make a automation that pings it every time there is a service call switch: turn on? or to set the brightness level?

in the automation after I save it and then come back to it it replaces it with


        "[object Object]": null

This is also wrong, should be property: targetValue.

1 Like

oh, let me fix that

I don’t understand what you mean here. What is replaced? value?

when I save it, it removes

value: "{{ states('input_number.light_level') | int }}"`

and replaces it with

value:
      "[object Object]": null

This was the error I was making, it worked once I changed that