----------- Publish MQTT ----------- Topic: domoticz/in Message: {"command":"switchlight","idx":7,"switchcmd":"On"} Retain: YES Status: published ------------------------------------ INFO: Domoticz: Got command: 1, IDX: 10 INFO: Domoticz: Found Relay ID: 1 INFO: Relay: ON, Trigger by HIGH signal INFO: Opening file: cfg-relay-state-1.json ... success INFO: Writing JSON: {"state":true} INFO: Data saved INFO: JSON: Buffer size: 36, actual JSON size: 24 ----------- Publish MQTT ----------- Topic: domoticz/in Message: {"command":"switchlight","idx":10,"switchcmd":"On"} Retain: YES Status: published ------------------------------------ INFO: Domoticz: Got command: 1, IDX: 12 INFO: Domoticz: Found Relay ID: 2 INFO: Relay: ON, Trigger by HIGH signal INFO: Opening file: cfg-relay-state-2.json ... success INFO: Writing JSON: {"state":true} INFO: Data saved INFO: JSON: Buffer size: 36, actual JSON size: 24 ----------- Publish MQTT ----------- Topic: domoticz/in Message: {"command":"switchlight","idx":12,"switchcmd":"On"} Retain: YES Status: published ------------------------------------ INFO: Domoticz: Got command: 0, IDX: 11 WARN: Domoticz: No item found with IDX: 11 INFO: Domoticz: Got command: 0, IDX: 2 WARN: Domoticz: No item found with IDX: 2 INFO: Domoticz: Got command: 0, IDX: 3 WARN: Domoticz: No item found with IDX: 3 INFO: Domoticz: Got command: 0, IDX: 4 WARN: Domoticz: No item found with IDX: 4rdd▒▒|▒l▒| ▒l▒c|▒▒▒▒;▒c▒c▒▒g'▒lng▒▒▒ bx▒▒l;l{lx▒n▒ ▒ d ▒▒ cg▒|▒$▒▒c▒▒'o▒$▒▒l`▒o$`'{▒▒▒ocl s▒▒' cd`▒c ▒▒ls▒`▒o▒ ################################ BOOTING ################################ INFO: All classes and global variables initialized INFO: Initializing device INFO: ESP Config erasedINFO: File system: mounted. Performs a quick garbage collection operation on SPIFFS INFO: Opening file: cfg-device-mode.json ... success INFO: JSON: {"mode":0} INFO: JSON: Buffer size: 31, actual JSON size: 24 WARN: Too small buffer size INFO: Opening file: cfg-device.json ... success INFO: JSON: {"name":"moduł test","timeToAutoLogOff":10,"api":{"http":true,"mqtt":true,"domoticz":false,"domoticzVersion":1},"noOfLEDs":1,"noOfSwitches":4,"noOfRelays":3,"isAnalogInput":false} INFO: JSON: Buffer size: 405, actual JSON size: 192 INFO: Checking if first time launch ... NO INFO: Opening file: cfg-i2c.json ... success INFO: JSON: {"SDA":4,"SCL":5} INFO: JSON: Buffer size: 54, actual JSON size: 40 INFO: Opening file: cfg-i2c.json ... success INFO: JSON: {"SDA":4,"SCL":5} INFO: JSON: Buffer size: 54, actual JSON size: 40 INFO: MCP23017 Broker: Caching MCP23017s ID's used by LEDs INFO: Opening file: cfg-led-0.json ... success INFO: JSON: {"gpio":2,"changeToOppositeValue":false,"mcp23017":{"address":0,"gpio":255}} INFO: JSON: Buffer size: 124, actual JSON size: 96 INFO: MCP23017 Broker: Caching MCP23017s ID's used by Relays INFO: Opening file: cfg-relay-0.json ... success INFO: JSON: {"gpio":255,"name":"R1","timeToOff":0,"statePowerOn":3,"stateMQTTConnected":0,"triggerSignal":1,"ledID":255,"idx":7,"mcp23017":{"address":32,"gpio":0}} INFO: JSON: Buffer size: 287, actual JSON size: 192 INFO: MCP23017 Broker: Initializing MCP23017[0x20] - Sensor Found [0x20] : MCP23017 INFO: MCP23017 Broker: MCP23017[0x20] added to the cache INFO: Opening file: cfg-relay-1.json ... success INFO: JSON: {"gpio":255,"name":"R2","timeToOff":0,"statePowerOn":3,"stateMQTTConnected":0,"triggerSignal":1,"ledID":255,"idx":10,"mcp23017":{"address":32,"gpio":1}} INFO: JSON: Buffer size: 287, actual JSON size: 192 INFO: MCP23017 Broker: MCP23017[0x20] already in cache INFO: Opening file: cfg-relay-2.json ... success INFO: JSON: {"gpio":255,"name":"R3","timeToOff":0,"statePowerOn":3,"stateMQTTConnected":0,"triggerSignal":1,"ledID":255,"idx":12,"mcp23017":{"address":32,"gpio":2}} INFO: JSON: Buffer size: 287, actual JSON size: 192 INFO: MCP23017 Broker: MCP23017[0x20] already in cache INFO: MCP23017 Broker: Caching MCP23017s ID's used by Switches INFO: Opening file: cfg-switch-0.json ... success INFO: JSON: {"gpio":0,"type":0,"sensitiveness":50,"functionality":1,"relayID":255,"idx":0,"mcp23017":{"address":0,"gpio":255}} INFO: JSON: Buffer size: 238, actual JSON size: 160 INFO: Opening file: cfg-switch-1.json ... success INFO: JSON: {"gpio":255,"type":0,"sensitiveness":150,"functionality":2,"relayID":0,"idx":0,"mcp23017":{"address":32,"gpio":3}} INFO: JSON: Buffer size: 238, actual JSON size: 160 INFO: MCP23017 Broker: MCP23017[0x20] already in cache INFO: Opening file: cfg-switch-2.json ... success INFO: JSON: {"gpio":255,"type":0,"sensitiveness":150,"functionality":2,"relayID":1,"idx":0,"mcp23017":{"address":32,"gpio":4}} INFO: JSON: Buffer size: 238, actual JSON size: 160 INFO: MCP23017 Broker: MCP23017[0x20] already in cache INFO: Opening file: cfg-switch-3.json ... success INFO: JSON: {"gpio":255,"type":0,"sensitiveness":150,"functionality":2,"relayID":2,"idx":0,"mcp23017":{"address":32,"gpio":5}} INFO: JSON: Buffer size: 238, actual JSON size: 160 INFO: MCP23017 Broker: MCP23017[0x20] already in cache INFO: Opening file: cfg-system-led.json ... success INFO: JSON: {"id":0} INFO: JSON: Buffer size: 30, actual JSON size: 24 WARN: Too small buffer size INFO: Opening file: cfg-led-0.json ... success INFO: JSON: {"gpio":2,"changeToOppositeValue":false,"mcp23017":{"address":0,"gpio":255}} INFO: JSON: Buffer size: 124, actual JSON size: 96 INFO: System LED initialized INFO: Checking, if WiFi was configured: NO INFO: Checking if firmware should be upgraded? INFO: Opening file: cfg-firmware.json ... success INFO: JSON: {"type":4,"api":1,"version":"2.4.0.B2","autoUpgrade":0,"upgradeURL":""} INFO: JSON: Buffer size: 145, actual JSON size: 88 INFO: Firmware version (stored) T4-2.4.0.B2-Domoticz INFO: Firmware version (booted) T4-2.4.0.B2-Domoticz INFO: Firmware is up2date INFO: Opening file: cfg-relay-0.json ... success INFO: JSON: {"gpio":255,"name":"R1","timeToOff":0,"statePowerOn":3,"stateMQTTConnected":0,"triggerSignal":1,"ledID":255,"idx":7,"mcp23017":{"address":32,"gpio":0}} INFO: JSON: Buffer size: 287, actual JSON size: 192 INFO: RELAY: Initializing with MCP23017 INFO: RELAY: Restoring relay stay after power ON: Option: Last know state INFO: Opening file: cfg-relay-state-0.json ... success INFO: JSON: {"state":true} INFO: JSON: Buffer size: 36, actual JSON size: 24 INFO: Relay: ON, Trigger by HIGH signal INFO: Opening file: cfg-relay-state-0.json ... success INFO: Writing JSON: {"state":true} INFO: Data saved INFO: JSON: Buffer size: 36, actual JSON size: 24 INFO: Opening file: cfg-relay-1.json ... success INFO: JSON: {"gpio":255,"name":"R2","timeToOff":0,"statePowerOn":3,"stateMQTTConnected":0,"triggerSignal":1,"ledID":255,"idx":10,"mcp23017":{"address":32,"gpio":1}} INFO: JSON: Buffer size: 287, actual JSON size: 192 INFO: RELAY: Initializing with MCP23017 INFO: RELAY: Restoring relay stay after power ON: Option: Last know state INFO: Opening file: cfg-relay-state-1.json ... success INFO: JSON: {"state":true} INFO: JSON: Buffer size: 36, actual JSON size: 24 INFO: Relay: ON, Trigger by HIGH signal INFO: Opening file: cfg-relay-state-1.json ... success INFO: Writing JSON: {"state":true} INFO: Data saved INFO: JSON: Buffer size: 36, actual JSON size: 24 INFO: Opening file: cfg-relay-2.json ... success INFO: JSON: {"gpio":255,"name":"R3","timeToOff":0,"statePowerOn":3,"stateMQTTConnected":0,"triggerSignal":1,"ledID":255,"idx":12,"mcp23017":{"address":32,"gpio":2}} INFO: JSON: Buffer size: 287, actual JSON size: 192 INFO: RELAY: Initializing with MCP23017 INFO: RELAY: Restoring relay stay after power ON: Option: Last know state INFO: Opening file: cfg-relay-state-2.json ... success INFO: JSON: {"state":true} INFO: JSON: Buffer size: 36, actual JSON size: 24 INFO: Relay: ON, Trigger by HIGH signal INFO: Opening file: cfg-relay-state-2.json ... success INFO: Writing JSON: {"state":true} INFO: Data saved INFO: JSON: Buffer size: 36, actual JSON size: 24 INFO: Relay(s) initialized INFO: Opening file: cfg-network.json ... success INFO: JSON: {"ssid":"AFEGrze2","password":"forum","isDHCP":1,"ip":"","gateway":"","subnet":"","noConnectionAttempts":30,"waitTimeConnections":1,"waitTimeSeries":20} INFO: JSON: Buffer size: 375, actual JSON size: 152 INFO: WIFI: Device is in mode: 0 ERROR: WIFI: Hostname NOT set: moduł test INFO: WiFi: Phisical mode mode (1:B 2:G 3:N): 3 INFO: WIFI: Starting WiFi: in WIFI_STA mode INFO: Network initialized INFO: Starting network INFO: WIFI: Starting establishing WiFi connection AFEGrze2 - forum INFO: Opening file: cfg-pro-version.json ... success INFO: JSON: {"valid":false,"serial":""} INFO: JSON: Buffer size: 78, actual JSON size: 40 INFO: Opening file: cfg-firmware.json ... success INFO: JSON: {"type":4,"api":1,"version":"2.4.0.B2","autoUpgrade":0,"upgradeURL":""} INFO: JSON: Buffer size: 145, actual JSON size: 88 INFO: Opening file: cfg-device-uid.json ... success INFO: JSON: {"uid":"5CabCF50-7F84847f"} INFO: JSON: Buffer size: 46, actual JSON size: 24 INFO: HTTP Server initialized INFO: Opening file: cfg-switch-0.json ... success INFO: JSON: {"gpio":0,"type":0,"sensitiveness":50,"functionality":1,"relayID":255,"idx":0,"mcp23017":{"address":0,"gpio":255}} INFO: JSON: Buffer size: 238, actual JSON size: 160 INFO: Opening file: cfg-switch-1.json ... success INFO: JSON: {"gpio":255,"type":0,"sensitiveness":150,"functionality":2,"relayID":0,"idx":0,"mcp23017":{"address":32,"gpio":3}} INFO: JSON: Buffer size: 238, actual JSON size: 160 INFO: SWITCH: Initializing with MCP23017 INFO: SWITCH: initial state of MCP23017 connecte switch: 0 INFO: Opening file: cfg-switch-2.json ... success INFO: JSON: {"gpio":255,"type":0,"sensitiveness":150,"functionality":2,"relayID":1,"idx":0,"mcp23017":{"address":32,"gpio":4}} INFO: JSON: Buffer size: 238, actual JSON size: 160 INFO: SWITCH: Initializing with MCP23017 INFO: SWITCH: initial state of MCP23017 connecte switch: 1 INFO: Opening file: cfg-switch-3.json ... success INFO: JSON: {"gpio":255,"type":0,"sensitiveness":150,"functionality":2,"relayID":2,"idx":0,"mcp23017":{"address":32,"gpio":5}} INFO: JSON: Buffer size: 238, actual JSON size: 160 INFO: SWITCH: Initializing with MCP23017 INFO: SWITCH: initial state of MCP23017 connecte switch: 0 INFO: Switch(es) initialized INFO: API: Initializing MQTT INFO: Opening file: cfg-mqtt-broker.json ... success INFO: JSON: {"host":"","ip":"192.168.0.115","port":1883,"user":"admin","password":"admin","lwt":14,"timeout":500,"retainAll":true,"retainLWT":true} INFO: JSON: Buffer size: 352, actual JSON size: 152 INFO: Opening file: cfg-network.json ... success INFO: JSON: {"ssid":"AFEGrze2","password":"forum","isDHCP":1,"ip":"","gateway":"","subnet":"","noConnectionAttempts":30,"waitTimeConnections":1,"waitTimeSeries":20} INFO: JSON: Buffer size: 375, actual JSON size: 152 INFO: MQTT Configuration INFO: Host: INFO: IP: 192.168.0.115 INFO: Port: 1883 INFO: User: admin INFO: Password: admin INFO: LWT IDX: 14 INFO: Domoticz version: 2020.x i późniejsze INFO: The reference to the relay: 1 added INFO: The reference to the relay: 2 added INFO: The reference to the relay: 3 added INFO: Caching IDXs for Relays - added IDX: 7 - added IDX: 10 - added IDX: 12 INFO: The reference to the switch: 1 added INFO: The reference to the switch: 2 added INFO: The reference to the switch: 3 added INFO: The reference to the switch: 4 added INFO: API: MQTT init completed INFO: API: Initializing MQTT INFO: API: HTTP init completed INFO: Opening file: cfg-i2c.json ... success INFO: JSON: {"SDA":4,"SCL":5} INFO: JSON: Buffer size: 54, actual JSON size: 40 ------------------ I2C Scanner ------------------ - Sensor Found [0x20] : MCP23017 Scanning completed --------------------------------------------------- ######################################################################## # BOOTING COMPLETED # # STARTING DEVICE # ######################################################################## INFO: Switch pressed with assigned Relay: 0 INFO: Relay: OFF, Trigger by HIGH signal INFO: Opening file: cfg-relay-state-0.json ... success INFO: Writing JSON: {"state":false} INFO: Data saved INFO: JSON: Buffer size: 36, actual JSON size: 24 INFO: Switch pressed with assigned Relay: 2 INFO: Relay: OFF, Trigger by HIGH signal INFO: Opening file: cfg-relay-state-2.json ... success INFO: Writing JSON: {"state":false} INFO: Data saved INFO: JSON: Buffer size: 36, actual JSON size: 24 INFO: WiFi connection attempt: 1 from 30, IP((IP unset)) WL-Status=6 INFO: WiFi connection attempt: 2 from 30, IP((IP unset)) WL-Status=6 INFO: WiFi connection attempt: 3 from 30, IP((IP unset)) WL-Status=6 INFO: WiFi connection attempt: 4 from 30, IP((IP unset)) WL-Status=6 INFO: WiFi connection attempt: 5 from 30, IP((IP unset)) WL-Status=6 INFO: WiFi connection attempt: 6 from 30, IP((IP unset)) WL-Status=6 INFO: WiFi connection attempt: 7 from 30, IP((IP unset)) WL-Status=6 INFO: WiFi connection attempt: 8 from 30, IP((IP unset)) WL-Status=6 INFO: WiFi connection attempt: 9 from 30, IP((IP unset)) WL-Status=6 INFO: WiFi connection attempt: 10 from 30, IP((IP unset)) WL-Status=6 INFO: Connected to WiFi INFO: Post WiFi Connection actions completed INFO: Connected to MQTT Broker INFO: WiFi: Connection established, MAC: 5C:CF:7F:84:50:AB, IP: 192.168.0.237 INFO: Subsribing to MQTT Topics ... - domoticz/out INFO: Sending current device state to MQTT Broker ... INFO: Synchronizing RELAY: 0 ----------- Publish MQTT ----------- Topic: domoticz/in Message: {"command":"switchlight","idx":7,"switchcmd":"Off"} Retain: YES Status: published ------------------------------------ INFO: Synchronizing RELAY: 1 ----------- Publish MQTT ----------- Topic: domoticz/in Message: {"command":"switchlight","idx":10,"switchcmd":"On"} Retain: YES Status: published ------------------------------------ INFO: Synchronizing RELAY: 2 ----------- Publish MQTT ----------- Topic: domoticz/in Message: {"command":"switchlight","idx":12,"switchcmd":"Off"} Retain: YES Status: published ------------------------------------ INFO: Synchronizing SWITCH: 0 INFO: Synchronizing SWITCH: 1 INFO: Synchronizing SWITCH: 2 INFO: Synchronizing SWITCH: 3 INFO: Sending message: device is connected ...