Slider to Sensor

I am struggling to get a slider value sent to my IHC.

Klip

I can send temp values ​​from the clima control to my ihc, but I’m not sure how to do it when it’s “just” a value from a slider.

Klip

I’m pretty sure it’s a small bug in my “trigger.to_state”, but I’ve tried the solutions I could find around without success. so I hope someone has the right code.

Please don’t post pictures of text. I can see exactly what is wrong but I can’t edit it. Post the text correctly formatted.

1 Like

I tried earlier, but I got a format error when I tried.

alias: PlugIn Timer
description: Styring af Ur til opladning af Bil
trigger:

  • platform: state
    entity_id:
    • input_number.slider1
      condition:
      action:
  • service: ihc.set_runtime_value_float
    data:
    controller_id: 0
    ihc_id: 18335243
    value: “{{ trigger.to_state.input_number.slider1 }}”
    mode: single

Click the link in my post. Read the instructions.

alias: PlugIn Timer
description: Styring af Ur til opladning af Bil
trigger:
  - platform: state
    entity_id:
      - input_number.slider1
condition: []
action:
  - service: ihc.set_runtime_value_float
    data:
      controller_id: 0
      ihc_id: 18335243
      value: "{{ trigger.to_state.input_number.slider1 }}"
mode: single

like this?

Yes like that. Here’s your solution:

action:
  - service: ihc.set_runtime_value_float
    data:
      controller_id: 0
      ihc_id: 18335243
      value: "{{ trigger.to_state.state }}"

You could also do it without trigger variables:

action:
  - service: ihc.set_runtime_value_float
    data:
      controller_id: 0
      ihc_id: 18335243
      value: "{{ states('input_number.slider1') }}"
1 Like

cool, it looks like something I’ve already tried, but I’ll try again, there might be a mistake in what I copied in. I’ll get back with the result thanks for your time and help so far.

it didn’t solve my problem. I think the code is correct so the error must be somewhere else.
I can see that when I change the value on the slider it also runs the automation in the log, but the value for “Plugin_Tid_value” does not change.

klip 4

and I can see if I change the value in my IHC it sends the value the other way so that part should work.

I’m a bit lost here and don’t really know what to look for?

Where is the documentation for this service?

I’m not familiar with it.

You can see what your automation is doing when you move the slider by looking at the automation trace:

You should also look at Settings → System → Logs for errors related to your automation.