supermomo31 / Somfy_MQTT

control Somfy / Simu RTS with MQTT
GNU General Public License v3.0
13 stars 2 forks source link

Error on the configuration web page #1

Open boumboum68 opened 3 years ago

boumboum68 commented 3 years ago

I'm struggling with this project regarding the configuration web page When I enter the Config and press save I have an error on the serial monitor Does this happen to you? Which version of arduino ide do you use? Thanks

thntsrts commented 3 years ago

Hi. I had problem with saving my config by pressing save on configuration page, I make make my dongle (Wemos D1 mini) working by manualy editing global.h file. Try to put your settings in default config (lines 305-317) and add lines: config.mqtt_broker_username= "[USERNAME]"; config.mqtt_broker_password= "[PASSWORD]";

boumboum68 commented 3 years ago

Hi thank you for the feedback Is it just possible to get a screen shot of your mqtt configuration to see how this is configured? Which server do you use?

thntsrts commented 3 years ago

I'm using HA with mosquitto broker config: logins: [] anonymous: true customize: active: false folder: mosquitto certfile: fullchain.pem keyfile: privkey.pem require_certificate: false`

This is a part of global.h file:

// DEFAULT CONFIG
config.cfgVersion = 2;
config.ssid = "my ssid";
config.password = "my password";
config.dhcp = true;
config.ip[0] = 192; config.ip[1] = 168; config.ip[2] = 1; config.ip[3] = 100;
config.netmask[0] = 255; config.netmask[1] = 255; config.netmask[2] = 255; config.netmask[3] = 0;
config.gateway[0] = 192; config.gateway[1] = 168; config.gateway[2] = 1; config.gateway[3] = 1;
config.mqtt_broker_addr[0] = 192; config.mqtt_broker_addr[1] = 168; config.mqtt_broker_addr[2] = 1; 
config.mqtt_broker_addr[3] = 200;
config.mqtt_broker_port = "1883";
config.mqtt_broker_username = "mqtt username";
config.mqtt_broker_password = "mqtt password";
config.mqtt_broker_client_id = "SomfyDongle";
config.mqtt_broker_client_id += chipIdString;
config.mqtt_devicetopic = "somfy";
boumboum68 commented 3 years ago

Tha KS the problèm is that the program can't suscribe to mqtt due to mqtt configuration I think I'm looking for an exemple to see why I will check