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

  Рет қаралды 5,308

BlocIoT

BlocIoT

Күн бұрын

Пікірлер: 21
@safaritooncesrv7946
@safaritooncesrv7946 9 күн бұрын
Thank you, this was mind opening! Do you have a video on how to connect wifi switches that to the Logo PLC. There are a lot of devices with ZigBee and just wifi connection to cell phones and apps like Tuya. Is it possible to connect these? Also do you have anything on rs485 to ethernet connections on the Logo. There are inexpensive ethernet to rs485 devices that would be very useful to connect to the logo.
@blociot
@blociot 9 күн бұрын
@@safaritooncesrv7946 thanls for watching. LOGO and industrial PLCs don't natively suppory Zigbee. if you want to connect a Zignee device to LOGO, you will need a middle software. You may use Homeassistant as the middle software and I have a video to showcase this application. You could also use Zignee2Mqtt to convert Zigbee to MQTT which is understandable for LOGO. I'm crrating a whole tutorial series for LOGO. The first video is already available. Make sire you follow that if you want to learn Modbus, RS485, etc. In LOGO!
@andlinux
@andlinux 3 ай бұрын
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 3 ай бұрын
Thanks for your feedback and time to watch this video. All be best with your cool projects. LOGO is a very interesting piece :)
@21Aera
@21Aera 6 ай бұрын
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 6 ай бұрын
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 6 ай бұрын
@@blociot Thank you! I'll try that when I have a chance to play with my lab 😁
@Ind4.0
@Ind4.0 6 ай бұрын
Seems my sprinkler system needs an upgrade 😅 Cool feature!
@blociot
@blociot 6 ай бұрын
@@Ind4.0 great application 👌
@arenetasatrec4939
@arenetasatrec4939 6 ай бұрын
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 6 ай бұрын
@@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 6 ай бұрын
The KZbin 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 5 ай бұрын
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 5 ай бұрын
@@blociot Can I help you?
@DutchMovinghead
@DutchMovinghead 5 ай бұрын
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 5 ай бұрын
@@DutchMovinghead thanks for watching. I'll give it a try in coming days and will update you here.
@blociot
@blociot 5 ай бұрын
Just uploaded a video for this topic. kzbin.info/www/bejne/iKrNpaN7hNGHfrMsi=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 5 ай бұрын
@@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 5 ай бұрын
@@DutchMovinghead sounds great. Thanks for the update. Glad it's working.
@tjagusz
@tjagusz 3 ай бұрын
I successfully connected my LOGO to HA using your video as a guide. Thank you! The sad part is that LOGO is sending each value in the same topic, which causes errors in logs, for example, if you have two inputs and you change the first one, then for second you will get an error: ERROR (MainThread) [homeassistant.helpers.template] Error parsing value: 'dict object' has no attribute 'I2' (value: {"state":{"reported":{"$logotime":1729768804}}}, template: {{ value_json['state']['reported']['I2']['value'][0] }}). Any ideas on how to solve this?
@blociot
@blociot 3 ай бұрын
Greta to hear the tutorial was useful. I didn't understand what do you mean by "when you change the first one...". Would you be able to explain more? If you want to access two analog inputs for example, first, you need to make sure the inputs are included in the transfer data area in the LOGO software. Once they are added, their value will be published to the topic as an JSON element. Here is an example, how you can access two analog inputs as two different MQTT sensors in HA: - name: LOGO Analog Input 1 state_topic: "logo/pub" value_template: "{{ value_json['state']['reported']['AI1']['value'][0] }}" - name: LOGO Analog Input 2 state_topic: "logo/pub" value_template: "{{ value_json['state']['reported']['AI2']['value'][0] }}" From the error message, it looks like I2 doesn't exists in your JSON payload that LOGO is publishing to your broker.
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41
小丑女COCO的审判。#天使 #小丑 #超人不会飞
00:53
超人不会飞
Рет қаралды 16 МЛН
小丑教训坏蛋 #小丑 #天使 #shorts
00:49
好人小丑
Рет қаралды 54 МЛН
Du WILLST Home Assistant (glaub mir)
16:37
c't 3003
Рет қаралды 148 М.
Home Assistant: Take Control of Your Smart Home (and Your Privacy!)
18:10
How to Get Started with MQTT
13:38
Opto Video
Рет қаралды 414 М.
Интеграция Siemens LOGO!8 с HomeAssistant
23:49
Uladzimir Bely
Рет қаралды 2 М.
How to configure S7-1200/S7-1500 as an MQTT Client with TIA Portal
21:21
AutomationStation
Рет қаралды 55 М.
MQTT 101: Integrate your DIY Devices into Home Assistant
28:06
ResinChem Tech
Рет қаралды 82 М.
DON'T Underestimate This Cheap MicroServer
18:07
Hardware Haven
Рет қаралды 548 М.
MQTT and Home Assistant
11:38
Home Automation Guy
Рет қаралды 122 М.
Мен атып көрмегенмін ! | Qalam | 5 серия
25:41