Closed bennyboom38 closed 5 years ago
I have disable MQTT and HomeAssistant and everything is working well. Do you have an idea why MQTT and HomeAssistant could stop wifi working well ?
Thanks a lot
That is weird, the code should be able to connect to MQTT and integrate with HA seamlessly.
Did you enable MQTT or AMQTT? I think I had such problems in the beginning and stabilized like you by not using many options. Then I introduced AMQTT and it works as needed.
That is weird, the code should be able to connect to MQTT and integrate with HA seamlessly.
Hello debsahu,
I have just try with another Wemos D1 Mini board and it seems to work with Home Assistant & MQTT .
My definitions.h :
My configuration.yaml (home assistant config file)
light:
input_number: neopixel_animation_speed: name: NeoPixel Animation Speed initial: 200 min: 0 max: 255 step: 5
Problem is that home assistant see the light off instead of on, so the switch on home assitant does not work. But when I switch off the led by MCLightning frontend, I can switch on with home assitant , but status is still wrong.
I don't have the panel to change color or effect, only the brightness setting is working, see the screenshot:
Did you enable MQTT or AMQTT? I think I had such problems in the beginning and stabilized like you by not using many options. Then I introduced AMQTT and it works as needed.
I have tried MQTT, and now MQTT seems working but with not all settings, I try to configure to use AMQTT to let home assistant configure by discovering
I believe your HomeAssistant configuration needs improvement. However I only configured HomeAssistant to access MQTT and perform AutoDiscovery.
Did you enable HomeAssistant support (ENABLE_HOMEASSISTANT) in definitions.h?
For me McLightning sends a message to a specific topic offering itself to HomeAssistant. After that HomeAssistant knows about the device and it's capabilities, and my settings dialog contains a lot more than your screenshot shows...
Hello,
Once I have verify and upload the sketch , i get my strip leds in blue with AP mode, I enter the wifi credentials, then ESP connect on wifi, and leds strip turn on red but soon after this I get the following log and ESP disconnect from wifi :
Should save config Saving config: {"mqtt_host":"192.168.XX.XX","mqtt_port":"XXXX","mqtt_user":"","mqtt_pass":""}WiFiManager config FS Save success! connected...yeey :) MQTT active: 192.168.XX.XX:XXXX Open http://192.168.XX.XX/ to open McLighting. Use http://MyEsp.local/ when you have Bonjour installed. New users: Open http://192.168.XX.XX/upload to upload the webpages first.
Couldn't find "/stripstate.json" Failure! *WM: freeing allocated params! MQTT disconnected, reconnecting! Attempting MQTT connection 1 / 4 ... MQTT connected! MQTT topic in: MyEsp/in MQTT topic out: MyEsp/out SET_MODE: 0 0 Saving Strip cfg: {"pixel_count":24,"rgb_order":82,"pin":5} MQTT: Send [home/MyEsp_ha/state/out]: {"state":"OFF","color":{"r":255,"g":0,"b":0},"brightness":196,"color_temp":327,"speed":196,"effect":"Static"} Heap size: 21136 WiFi disconnected, reconnecting! WiFi disconnected, reconnecting! WiFi disconnected, reconnecting! WiFi disconnected, reconnecting! WiFi disconnected, reconnecting! WiFi disconnected, reconnecting! WiFi disconnected, reconnecting! WiFi disconnected, reconnecting!
Could you help me ?
Regards
Ben