After I updated from 2021.1.5 to 2021.1.6 all my binary sensors quit working and I’m hoping one of you might spot the problem.
All worked perfect until the up date and work after downgrading back to 2021.1.5. The logs show nothing but " binary sensor not available.
Here is a sample of the code for the ESP8266 and the best I can tell the problem is there.
Here are the logs:
[11:37:35][C][wifi:307]: Hostname: 'binary_sensors'
[11:37:35][C][wifi:311]: Signal strength: -64 dB ▂▄▆█
[11:37:35][C][wifi:315]: Channel: 6
[11:37:35][C][wifi:316]: Subnet: 255.255.255.0
[11:37:35][C][wifi:317]: Gateway: 192.168.0.1
[11:37:35][C][wifi:318]: DNS1: (IP unset)
[11:37:35][C][wifi:319]: DNS2: (IP unset)
[11:37:35][C][i2c:028]: I2C Bus:
[11:37:35][C][i2c:029]: SDA Pin: GPIO5
[11:37:35][C][i2c:030]: SCL Pin: GPIO4
[11:37:35][C][i2c:031]: Frequency: 50000 Hz
[11:37:35][C][mcp23017:024]: MCP23017:
[11:37:35][C][mcp23017:024]: MCP23017:
[11:37:35][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Binary Sensor 1'
[11:37:35][C][gpio.binary_sensor:016]: Pin: GPIO0 (Mode: INPUT, INVERTED)
[11:37:35][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Binary Sensor 2'
[11:37:35][C][gpio.binary_sensor:016]: Pin: GPIO1 (Mode: INPUT, INVERTED)
[11:37:35][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Binary Sensor 3'
[11:37:35][C][gpio.binary_sensor:016]: Pin: GPIO2 (Mode: INPUT, INVERTED)
[11:37:35][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Binary Sensor 4'
[11:37:35][C][gpio.binary_sensor:016]: Pin: GPIO3 (Mode: INPUT, INVERTED)
[11:37:36][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Binary Sensor 5'
[11:37:36][C][gpio.binary_sensor:016]: Pin: GPIO4 (Mode: INPUT, INVERTED)
[11:37:36][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Binary Sensor 6'
[11:37:36][C][gpio.binary_sensor:016]: Pin: GPIO5 (Mode: INPUT, INVERTED)
[11:37:36][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Binary Sensor 7'
[11:37:36][C][gpio.binary_sensor:016]: Pin: GPIO6 (Mode: INPUT, INVERTED)
[11:37:36][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Binary Sensor 8'
[11:37:36][C][gpio.binary_sensor:016]: Pin: GPIO7 (Mode: INPUT, INVERTED)
[11:37:36][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Binary Sensor 9'
[11:37:36][C][gpio.binary_sensor:016]: Pin: GPIO8 (Mode: INPUT)
[11:37:36][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Binary Sensor 10'
[11:37:36][C][gpio.binary_sensor:016]: Pin: GPIO9 (Mode: INPUT, INVERTED)
[11:37:36][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Binary Sensor 11'
[11:37:36][C][gpio.binary_sensor:016]: Pin: GPIO10 (Mode: INPUT, INVERTED)
[11:37:36][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Binary Sensor 12'
[11:37:36][C][gpio.binary_sensor:016]: Pin: GPIO11 (Mode: INPUT, INVERTED)
[11:37:36][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Binary Sensor 13'
[11:37:36][C][gpio.binary_sensor:016]: Pin: GPIO12 (Mode: INPUT, INVERTED)
[11:37:36][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Binary Sensor 14'
[11:37:36][C][gpio.binary_sensor:016]: Pin: GPIO13 (Mode: INPUT, INVERTED)
[11:37:36][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Binary Sensor 15'
[11:37:36][C][gpio.binary_sensor:016]: Pin: GPIO14 (Mode: INPUT, INVERTED)
[11:37:36][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Binary Sensor 16'
[11:37:36][C][gpio.binary_sensor:016]: Pin: GPIO15 (Mode: INPUT, INVERTED)
[11:37:36][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Binary Sensor 17'
[11:37:36][C][gpio.binary_sensor:016]: Pin: GPIO0 (Mode: INPUT, INVERTED)
[11:37:36][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Binary Sensor 18'
[11:37:36][C][gpio.binary_sensor:016]: Pin: GPIO1 (Mode: INPUT, INVERTED)
[11:37:36][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Binary Sensor 19'
[11:37:36][C][gpio.binary_sensor:016]: Pin: GPIO2 (Mode: INPUT, INVERTED)
[11:37:36][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Binary Sensor 20'
[11:37:36][C][gpio.binary_sensor:016]: Pin: GPIO3 (Mode: INPUT, INVERTED)
[11:37:36][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Binary Sensor 21'
[11:37:36][C][gpio.binary_sensor:016]: Pin: GPIO4 (Mode: INPUT, INVERTED)
[11:37:36][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Binary Sensor 22'
[11:37:36][C][gpio.binary_sensor:016]: Pin: GPIO5 (Mode: INPUT, INVERTED)
[11:37:36][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Binary Sensor 23'
[11:37:36][C][gpio.binary_sensor:016]: Pin: GPIO6 (Mode: INPUT, INVERTED)
[11:37:36][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Binary Sensor 24'
[11:37:36][C][gpio.binary_sensor:016]: Pin: GPIO7 (Mode: INPUT, INVERTED)
[11:37:36][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Binary Sensor 25'
[11:37:37][C][gpio.binary_sensor:016]: Pin: GPIO8 (Mode: INPUT, INVERTED)
[11:37:37][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Binary Sensor 26'
[11:37:37][C][gpio.binary_sensor:016]: Pin: GPIO9 (Mode: INPUT, INVERTED)
[11:37:37][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Binary Sensor 27'
[11:37:37][C][gpio.binary_sensor:016]: Pin: GPIO10 (Mode: INPUT, INVERTED)
[11:37:37][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Binary Sensor 28'
[11:37:37][C][gpio.binary_sensor:016]: Pin: GPIO11 (Mode: INPUT, INVERTED)
[11:37:37][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Binary Sensor 29'
[11:37:37][C][gpio.binary_sensor:016]: Pin: GPIO12 (Mode: INPUT, INVERTED)
[11:37:37][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Binary Sensor 30'
[11:37:37][C][gpio.binary_sensor:016]: Pin: GPIO13 (Mode: INPUT, INVERTED)
[11:37:37][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Binary Sensor 31'
[11:37:37][C][gpio.binary_sensor:016]: Pin: GPIO14 (Mode: INPUT, INVERTED)
[11:37:37][C][gpio.binary_sensor:015]: GPIO Binary Sensor 'Binary Sensor 32'
[11:37:37][C][gpio.binary_sensor:016]: Pin: GPIO15 (Mode: INPUT, INVERTED)
[11:37:37][C][logger:185]: Logger:
[11:37:37][C][logger:186]: Level: DEBUG
[11:37:37][C][logger:187]: Log Baud Rate: 115200
[11:37:37][C][logger:188]: Hardware UART: UART0
[11:37:37][C][captive_portal:169]: Captive Portal:
[11:37:37][C][ota:029]: Over-The-Air Updates:
[11:37:38][C][ota:030]: Address: 192.168.0.211:8266
[11:37:38][C][api:095]: API Server:
[11:37:38][C][api:096]: Address: 192.168.0.211:6053
And this is the code for the Esp8266:
``i2c:
sda: D1
scl: D2
scan: False
mcp23017:
- id: 'mcp23017_hub'
address: 0x20
- id: 'mcp23017_hub2'
address: 0x24
binary_sensor:
- platform: gpio
name: "Binary Sensor 1"
id: BS1
pin:
mcp23xxx: mcp23017_hub
number: 0
inverted: True
- platform: gpio
name: "Binary Sensor 2"
id: BS2
pin:
mcp23xxx: mcp23017_hub
number: 1
inverted: True
- platform: gpio
name: "Binary Sensor 3"
id: BS3
pin:
mcp23xxx: mcp23017_hub
number: 2
inverted: True