40- How to Connect a Siemens LOGO to Home Assistant as an MQTT Sensor?

Поділитися
Вставка
  • Опубліковано 19 жов 2024

КОМЕНТАРІ • 17

  • @andlinux
    @andlinux 17 днів тому +1

    I really need to buy new Logo's, I still have the 8.0 version from 8 years ago and they do not support MQTT or modbus tcp to communicate with the outside world (already asked people from Siemens on their forum) :)
    Lately started with Home Assistant/Zigbee/ESPHome and if I can add my Logo's to Home Assistant then I can control/automate almost everything from a central point.
    Thanks for the video's they are very informative.

    • @blociot
      @blociot  17 днів тому

      Thanks for your feedback and time to watch this video. All be best with your cool projects. LOGO is a very interesting piece :)

  • @Ind4.0
    @Ind4.0 3 місяці тому +1

    Seems my sprinkler system needs an upgrade 😅 Cool feature!

    • @blociot
      @blociot  3 місяці тому

      @@Ind4.0 great application 👌

  • @21Aera
    @21Aera 3 місяці тому +1

    Great content ! Thank you. It would be great to see also how to read a state from HA into the LOGO. For instance if a light is connected to the LOGO and we want to turn it on/off from HA.

    • @blociot
      @blociot  3 місяці тому +1

      Thank your for your feedback. Great question. To control a light switch from HA, you need to define a SWITCH instead of SENSOR on the yaml file. you can find the details here:
      www.home-assistant.io/integrations/switch.mqtt/
      The only catch is the json payload format that needs to be defined under the SWITCH. Here is an example that you can use:
      {
      "state": {
      "reported": {
      "VM4": {
      "desc": "V-word-4-1",
      "value": [
      13
      ]
      }
      }
      }
      }
      This payload write the value of 13 to VM4 which is defined in LOGO MQTT transfer area.

    • @21Aera
      @21Aera 3 місяці тому +1

      @@blociot Thank you! I'll try that when I have a chance to play with my lab 😁

  • @arenetasatrec4939
    @arenetasatrec4939 2 місяці тому +1

    Nice. Did you managed to send signals from homeassistant or any type of platforms in to LOGO to act as inputs to do some actions with LOGO program such a trigger outputs or programme logics? If yes, in which video?

    • @blociot
      @blociot  2 місяці тому +1

      @@arenetasatrec4939 thanks for watching. I don't have a video for it but you're not the only person who asked for this feature so I will do a quick test and will record a short video for it in coming days.

  • @UniqueunlimitedBD
    @UniqueunlimitedBD 3 місяці тому +1

    The UA-cam channel video's SEO rating is poor of Due to this your subscribers and views are not increasing, and the titles, descriptions, and keywords SEO should be done correctly only then you will get good results. the same problem in Video every.

    • @blociot
      @blociot  2 місяці тому

      Thank you for the heads up. I just share videos to share knowledge. I'm not a professional content creator and don't know much about SEO on YT. But I should start working on it 👍

    • @UniqueunlimitedBD
      @UniqueunlimitedBD 2 місяці тому

      @@blociot Can I help you?

  • @DutchMovinghead
    @DutchMovinghead 2 місяці тому +1

    Nice vid! Also busy with Logo 8.4. Looking forward to the MQTT switch. Still trying here. In MQTT explorer i see the value is send, but the M1 stays 0.
    switch:
    # Siemens LOGO 8.4 network switches
    unique_id: xyz
    name: "xyz"
    state_topic: "LOGO_Pub" # Topic to read the current state
    value_template: '{{ value_json.state.reported.M1.value[0] }}'
    command_topic: "LOGO_Sub" # Topic to publish commands
    payload_on: '{"state": {"reported": {"V0": {"desc":"V-bit-0.0-1","value":[1]}}}}'
    payload_off: '{"state": {"reported": {"V0": {"desc":"V-bit-0.0-1,"value":[0]}}}}'
    state_on: "1"
    state_off: "0"

    • @blociot
      @blociot  2 місяці тому +1

      @@DutchMovinghead thanks for watching. I'll give it a try in coming days and will update you here.

    • @blociot
      @blociot  2 місяці тому +1

      Just uploaded a video for this topic. ua-cam.com/video/RyjtpEOlTHQ/v-deo.htmlsi=FWPwwP7kPWoIseSl
      You may watch minute 10 to see the YAML file. I didn't include a state_topic for the MQTT switch. But it's the same idea. Hope this helps

    • @DutchMovinghead
      @DutchMovinghead 2 місяці тому +1

      @@blociot Heey! Thanks for the vid, tried the same. Good to mention that JSON hack, works indeed great! After a few tries i got it working as expected.

    • @blociot
      @blociot  2 місяці тому +1

      @@DutchMovinghead sounds great. Thanks for the update. Glad it's working.