Hi, suddenly I can’t validate my config because of “off_delay” in a mqtt sensor config. It’s been there for three years. Started happening today. I don’t see any mention of this in the documentiation. Any tips?
Edit: I see it’s some sort of bigger deprecation? After removing “off_delay”, I’m getting
Invalid config for [mqtt]: not a valid value for dictionary value @ data['mqtt']['light'][0]['schema']. Got 'default'
required key not provided @ data['mqtt']['switch'][2]['command_topic']. Got None. (See /config/configuration.yaml, line 49).
I literally haven’t touched the configuration.yaml in weeks if not months.
Switch, sorry. These are shitty RF buttons integrated via Sonoff RF Bridge and MQTT. They work much more reliably with off_delay defined (probably as some sort of debouncing but that’s where my knowledge ends).
(I don’t know what’s happening today, this is literally what Synology Drive produced!)
I understand the switch config is weird but I really set this up almost four years ago, haven’t touched it since and it has been working and there was never an issue validating this. It’s a RF switch, so it’s really a sensor sensing the RF code and acting as a switch. I really can’t remember why it’s set up as this but it has been working.
Be that as it may, the yaml for some reason doesn’t validate even without it. This is now also not validating:
Again, I bought this bulb in 2019 and haven’t touched its config since (I know it’s now fully configurable in Zigbee2MQTT), and it has been happily validating until today.
Invalid config for [mqtt]: [payload_on] is an invalid option for [mqtt]. Check: mqtt->mqtt->sensor->2->payload_on. (See /config/configuration.yaml, line 49).
That’s just really wrong, isn’t it? Since when is payload_on not a valid MQTT option?
I do update on day 1, and I haven’t changed this. I don’t use that RF switch very often, I definitely have not adjusted this at all, and it has been validating fine. I can maybe even dig up old backups.
Problem solved, something (??) has removed the “binary sensor” heading. Unless I was changing my yaml in sleep, I don’t know how this happened, I don’t manually edit the yaml much these days.
The window and “hall left/right” entries were supposed to be under a binary sensor heading that “somehow” got deleted. It now validates as expected.