Nice video!, thanks. I get ok connection from serial port Window - MQTT - OK Motion - MQTT - OK Light - MQTT - OK Photores - MQTT - OK but all cards appear like unknown and i push bulb to turn on and off i cant get any message from serial port... why?
Check addons broker configuration in Home Assistant. Maybe there is username and password generated for it, and add username and password to c++ code for connection to broker (after broker port 1883).
Hi @1BarConmection, Thank you for the such an amazing video on connecting home assistant to nodemcu. Is there anyway we can make it work with iot, that is instead of connecting it to local server, can we connect it to an AWS iot core and control it from anywhere in the work. Please let me know if that is possible.
hai, I connect mcu with relay when i switch ON through H A Relay was OFF and when I ON through H A it was showing OFF history logs also showing OFF kindly provide a good solution
Hmmm , i copied the ymal file and replaced my yaml and then used the ino to program the nodemcu. The serial port monitor reports the mqtt connected but the HA screen does not show any icons like your display, and reports mqtt, mqtt.light, mqtt.sensor components and platforms could not be set up. I am running a Pi3 ,HassOS 2.12 & Home Assistant 0.101.3
Hi Larry. Did you edit UI config for HomeAssistant? Also you need to stop and start HomeAssistant again after you have changed yaml file. github.com/1BarConnection/nodemcu_smart_home/blob/master/raw_config_editor_UI.txt
One more thing. I was using old version of home assistant here. With new versions, I found out that if you have option to use addons create MQTT broker with addons. If you can't use addons (e.g. if you installed home assistant core) install MQTT broker manually on your computer where you installed that home assistant (e.g. check out mosquitto broker).
Hi. As you can see in yaml file, for broker configuration I wrote just one line, and that is "mqtt:". This is called embedded broker and it is now deprecated. If you write just "mqtt:" without any parameter like IP or port, it will look at default broker settings. IP will be 127.0.0.1 (localhost), port will be: 1883, and so on. Too see more info about that, take a look here: www.home-assistant.io/docs/mqtt/broker/
Hi @@yasirali9190, I currently don't have access to PC on which this HomeAssistant is installed so I'm not able to test this. Please check your configuration paths and files in HomeAssistant folder. On which OS are you running HomeAssistant?
Try to add broker IP like this (but use your device IP) in configuration.yaml: # MQTT broker mqtt: broker: 10.0.2.15 Please be careful when editing configuration because it is space sensitive (broker shoud be 2 spaces from start of the line). Also when changing and saving configuration, stop and start HomeAssistant again. Check that you are using the right IP address (IP of device you installed HomeAssistant on) and port 8123. If that is not the case, maybe with the new HomeAssistant versions they changed some rules in configuration. Try to use HomeAssistant version 0.98.3. This is the one I'm using in this video and I have no errors.
@@muhammetalibaygin2391 It is not needed, but it is better to use static IP. You can set static IP on your PC easy. Just watch that IP address is free.
Thank you very much!!
I'm glad I helped.
Nice video!, thanks. I get ok connection from serial port Window - MQTT - OK
Motion - MQTT - OK
Light - MQTT - OK
Photores - MQTT - OK
but all cards appear like unknown and i push bulb to turn on and off i cant get any message from serial port... why?
Did you install MQTT broker? In new versions you need to add broker manually or with addons. Wait few more days and I'll release new video about it.
@@1BarConnection yeah of course, i add mosquitto with addons. I dont know what i should do
Check addons broker configuration in Home Assistant. Maybe there is username and password generated for it, and add username and password to c++ code for connection to broker (after broker port 1883).
@@1BarConnection GREAT!!! you were right. It was because of wrong credentia!s. Thanks a lot :D
Glad to hear that. Have fun with Home Assistant. ;)
Nice , u are awesome
Hi @1BarConmection, Thank you for the such an amazing video on connecting home assistant to nodemcu. Is there anyway we can make it work with iot, that is instead of connecting it to local server, can we connect it to an AWS iot core and control it from anywhere in the work. Please let me know if that is possible.
Its possibly and thats how many of the branded devices work.
hai, I connect mcu with relay when i switch ON through H A Relay was OFF and when I ON through H A it was showing OFF history logs also showing OFF kindly provide a good solution
Hmmm , i copied the ymal file and replaced my yaml and then used the ino to program the nodemcu. The serial port monitor reports the mqtt connected but the HA screen does not show any icons like your display, and reports mqtt, mqtt.light, mqtt.sensor components and platforms could not be set up. I am running a Pi3 ,HassOS 2.12 & Home Assistant 0.101.3
Hi Larry. Did you edit UI config for HomeAssistant? Also you need to stop and start HomeAssistant again after you have changed yaml file. github.com/1BarConnection/nodemcu_smart_home/blob/master/raw_config_editor_UI.txt
Hello, i have problemm attempting MQtt conection failed
i use esp32 with nodemcu32 its okey?
Yeah. That shouldn't be a problem. ESP32 is also "stronger" than 8266.
One more thing. I was using old version of home assistant here. With new versions, I found out that if you have option to use addons create MQTT broker with addons. If you can't use addons (e.g. if you installed home assistant core) install MQTT broker manually on your computer where you installed that home assistant (e.g. check out mosquitto broker).
@@1BarConnection can you make a video on this.... i have mosquitoo borker installed in HA ....
why did you not add mqtt ip address in yaml file?
Hi. As you can see in yaml file, for broker configuration I wrote just one line, and that is "mqtt:". This is called embedded broker and it is now deprecated. If you write just "mqtt:" without any parameter like IP or port, it will look at default broker settings. IP will be 127.0.0.1 (localhost), port will be: 1883, and so on. Too see more info about that, take a look here: www.home-assistant.io/docs/mqtt/broker/
@@1BarConnection when i add configuration in yaml file it gives error
The following integrations and platforms could not be set up:
port
broker
mqtt
mqtt.sensor
mqtt.light
Please check your config.
please help about it
Hi @@yasirali9190, I currently don't have access to PC on which this HomeAssistant is installed so I'm not able to test this. Please check your configuration paths and files in HomeAssistant folder. On which OS are you running HomeAssistant?
I cant get ip adress for home assistant why?
Try to add broker IP like this (but use your device IP) in configuration.yaml:
# MQTT broker
mqtt:
broker: 10.0.2.15
Please be careful when editing configuration because it is space sensitive (broker shoud be 2 spaces from start of the line). Also when changing and saving configuration, stop and start HomeAssistant again. Check that you are using the right IP address (IP of device you installed HomeAssistant on) and port 8123. If that is not the case, maybe with the new HomeAssistant versions they changed some rules in configuration. Try to use HomeAssistant version 0.98.3. This is the one I'm using in this video and I have no errors.
@@1BarConnection
could you make another video that says everything?
@@1BarConnection
Do you need a static ip adress for these operations?
@@muhammetalibaygin2391 Ok, I will put that on my list and create some video about setting up Home Assistant.
@@muhammetalibaygin2391 It is not needed, but it is better to use static IP. You can set static IP on your PC easy. Just watch that IP address is free.