Write analog sensor value to siemens logo

Hello
I am trying to write an analog sensor value with ha to my Siemens logo.
I have tried different things but it doesn’t work.

I want to write “sensor.envoy_xxxxxxxxx_current_net_power_consumption”
to VW300 → address: 150

I am able to read a sensor and operate switches

modbus:
  - name: logo_meterkast
    type: tcp
    host: xxxxxxxx
    port: xxxx

    switches:
      - name: s_aanrecht
        address: 2
        write_type: coil
        command_on: 1
        command_off: 0
        scan_interval: 5
      - name: s_eettafel
        address: 1
        write_type: coil
        command_on: 1
        command_off: 0
        scan_interval: 5

    binary_sensors:
      - name: Lamp aanrecht
        unique_id: lamp_aanrecht
        address: 8262
        device_class: light
        input_type: coil
        lazy_error_count: 0
        scan_interval: 5
      - name: Lamp eettafel
        unique_id: lamp_eettafel
        address: 8264
        device_class: light
        input_type: coil
        lazy_error_count: 0
        scan_interval: 5

    sensors:
      - name: Boiler onder
        unique_id: boiler_onder
        address: 544
        input_type: holding
        unit_of_measurement: °C
        state_class: measurement
        scale: 0.1
        precision: 1
      - name: Boiler boven
        unique_id: boiler_boven
        address: 545
        input_type: holding
        unit_of_measurement: °C
        state_class: measurement
        scale: 0.1
        precision: 1

Can anyone help me with an example?
Thank you in advance.

Hello everybody,

I want to “jump on” this topic as well.
I have a similiar problem:

I have a logo program for irrigation.
I want to have a switch- off delay (B007) with which I can set up the target time for irrigation (for example: 1-30 mins.).

This value should be changeable by using a slider in HA.

Until now, I didn`t manage to get this running.

  • I have created a slider in HA
  • Switches and sensors are runnig well on this Logo (configured in configuration.yaml)
  • Modbus works well

Does someone of you has already achieved this?

Thank you in advance for any help.

I make a script. And control the script with an automation.
So that the value is adjusted if the entered value changes

script

Hello @marcovt,

thank you very much for the feedback.
It`s interesting, that you achieved it to get it running.

Would you mind, to please provide further information regarding:

  • What is the code for this script?
  • Have you used a slider?
  • Where have you entered the address of the switch-off delay?

in my case I have this address in LSC:

What needs to be configured to get this running?
This will be also interesting for @ Salzarg.

Thank you very much.