All my mqtt entities are greyed out


Second time this week; I cannot load the integration page


or the yaml page


or anything else under “developer tools” apart from “states”

unders setting, I can only access “automations”

A restart sorts it, why???

Check your logs.

homeassistant.log1, which I assume it was the log before I restarted

2022-07-01 11:15:24 WARNING (MainThread) [homeassistant.components.ios] The 'push' option near /config/configuration.yaml:83 is deprecated, please remove it from your configuration
2022-07-01 11:15:25 ERROR (MainThread) [homeassistant.components.device_tracker] Platform mobile_app does not generate unique IDs. ID 2E2D6AFB-F122-4956-88B8-101736A6EE44 already exists - ignoring device_tracker.iphone_12_pro_di_jacopo
2022-07-01 11:15:26 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'float' got invalid input 'unknown' when rendering template '{{ value|float + states('sensor.home_energy')|float }}' but no default was specified. Currently 'float' will return '0', however this template will fail to render in Home Assistant core 2022.6
2022-07-01 11:15:41 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'float' got invalid input 'unknown' when rendering template '{{states.sensor.shelly_ht_temp.state|float>states.sensor.cucina_temperature.state|float+1}}' but no default was specified. Currently 'float' will return '0', however this template will fail to render in Home Assistant core 2022.6
2022-07-01 11:15:41 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'float' got invalid input 'unknown' when rendering template '{{states.sensor.shelly_ht_temp.state|float>states.sensor.cucina_temperature.state|float+1}}' but no default was specified. Currently 'float' will return '0', however this template will fail to render in Home Assistant core 2022.6
2022-07-01 11:15:41 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'float' got invalid input 'unknown' when rendering template '{{states.sensor.shelly_ht_temp.state|float+1<states.sensor.cucina_temperature.state|float}}' but no default was specified. Currently 'float' will return '0', however this template will fail to render in Home Assistant core 2022.6
2022-07-01 11:15:41 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'float' got invalid input 'unknown' when rendering template '{{states.sensor.shelly_ht_temp.state|float+1<states.sensor.cucina_temperature.state|float}}' but no default was specified. Currently 'float' will return '0', however this template will fail to render in Home Assistant core 2022.6
2022-07-01 11:15:48 WARNING (MainThread) [homeassistant.components.sensor] Updating command_line sensor took longer than the scheduled update interval 0:00:03
2022-07-01 11:20:28 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'float' got invalid input 'unknown' when rendering template '{{states.sensor.shelly_ht_temp.state|float>states.sensor.cucina_temperature.state|float+1}}' but no default was specified. Currently 'float' will return '0', however this template will fail to render in Home Assistant core 2022.6
2022-07-01 11:20:28 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'float' got invalid input 'unknown' when rendering template '{{states.sensor.shelly_ht_temp.state|float+1<states.sensor.cucina_temperature.state|float}}' but no default was specified. Currently 'float' will return '0', however this template will fail to render in Home Assistant core 2022.6
2022-07-01 11:20:43 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0x3ACC:1:0x0001]: async_initialize: all attempts have failed: [DeliveryError('[0x3acc:1:0x0001]: Message send failure'), DeliveryError('[0x3acc:1:0x0001]: Message send failure'), DeliveryError('[0x3acc:1:0x0001]: Message send failure'), DeliveryError('[0x3acc:1:0x0001]: Message send failure')]
2022-07-01 11:20:45 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0x3ACC:1:0x0500]: async_initialize: all attempts have failed: [DeliveryError('[0x3acc:1:0x0500]: Message send failure'), DeliveryError('[0x3acc:1:0x0500]: Message send failure'), DeliveryError('[0x3acc:1:0x0500]: Message send failure'), DeliveryError('[0x3acc:1:0x0500]: Message send failure')]
2022-07-01 11:24:52 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0x993E:1:0x0001]: async_initialize: all attempts have failed: [DeliveryError('[0x993e:1:0x0001]: Message send failure'), DeliveryError('[0x993e:1:0x0001]: Message send failure'), DeliveryError('[0x993e:1:0x0001]: Message send failure'), DeliveryError('[0x993e:1:0x0001]: Message send failure')]
2022-07-01 11:24:54 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0x993E:1:0x0500]: async_initialize: all attempts have failed: [DeliveryError('[0x993e:1:0x0500]: Message send failure'), DeliveryError('[0x993e:1:0x0500]: Message send failure'), DeliveryError('[0x993e:1:0x0500]: Message send failure'), DeliveryError('[0x993e:1:0x0500]: Message send failure')]
2022-07-01 11:31:47 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0x9460:1:0x0001]: async_initialize: all attempts have failed: [DeliveryError('[0x9460:1:0x0001]: Message send failure'), DeliveryError('[0x9460:1:0x0001]: Message send failure'), DeliveryError('[0x9460:1:0x0001]: Message send failure'), DeliveryError('[0x9460:1:0x0001]: Message send failure')]
2022-07-01 11:31:47 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0x9460:1:0x0500]: async_initialize: all attempts have failed: [DeliveryError('[0x9460:1:0x0500]: Message send failure'), DeliveryError('[0x9460:1:0x0500]: Message send failure'), DeliveryError('[0x9460:1:0x0500]: Message send failure'), DeliveryError('[0x9460:1:0x0500]: Message send failure')]
2022-07-01 11:32:36 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0x0C9D:1:0x0500]: async_initialize: all attempts have failed: [DeliveryError('[0x0c9d:1:0x0500]: Message send failure'), DeliveryError('[0x0c9d:1:0x0500]: Message send failure'), DeliveryError('[0x0c9d:1:0x0500]: Message send failure'), DeliveryError('[0x0c9d:1:0x0500]: Message send failure')]
2022-07-01 11:40:27 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'float' got invalid input 'unknown' when rendering template '{{states.sensor.shelly_ht_temp.state|float>states.sensor.cucina_temperature.state|float+1}}' but no default was specified. Currently 'float' will return '0', however this template will fail to render in Home Assistant core 2022.6
2022-07-01 11:40:27 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'float' got invalid input 'unknown' when rendering template '{{states.sensor.shelly_ht_temp.state|float+1<states.sensor.cucina_temperature.state|float}}' but no default was specified. Currently 'float' will return '0', however this template will fail to render in Home Assistant core 2022.6
2022-07-01 11:55:27 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'float' got invalid input 'unknown' when rendering template '{{states.sensor.shelly_ht_temp.state|float>states.sensor.cucina_temperature.state|float+1}}' but no default was specified. Currently 'float' will return '0', however this template will fail to render in Home Assistant core 2022.6
2022-07-01 11:55:27 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'float' got invalid input 'unknown' when rendering template '{{states.sensor.shelly_ht_temp.state|float+1<states.sensor.cucina_temperature.state|float}}' but no default was specified. Currently 'float' will return '0', however this template will fail to render in Home Assistant core 2022.6
2022-07-01 11:58:07 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0x0BB1:1:0x0500]: async_initialize: all attempts have failed: [DeliveryError('[0x0bb1:1:0x0500]: Message send failure'), DeliveryError('[0x0bb1:1:0x0500]: Message send failure'), DeliveryError('[0x0bb1:1:0x0500]: Message send failure'), DeliveryError('[0x0bb1:1:0x0500]: Message send failure')]
2022-07-01 11:58:07 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0x0BB1:1:0x0001]: async_initialize: all attempts have failed: [DeliveryError('[0x0bb1:1:0x0001]: Message send failure'), DeliveryError('[0x0bb1:1:0x0001]: Message send failure'), DeliveryError('[0x0bb1:1:0x0001]: Message send failure'), DeliveryError('[0x0bb1:1:0x0001]: Message send failure')]
2022-07-01 12:15:27 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'float' got invalid input 'unknown' when rendering template '{{states.sensor.shelly_ht_temp.state|float>states.sensor.cucina_temperature.state|float+1}}' but no default was specified. Currently 'float' will return '0', however this template will fail to render in Home Assistant core 2022.6
2022-07-01 12:15:27 WARNING (MainThread) [homeassistant.helpers.template] Template warning: 'float' got invalid input 'unknown' when rendering template '{{states.sensor.shelly_ht_temp.state|float+1<states.sensor.cucina_temperature.state|float}}' but no default was specified. Currently 'float' will return '0', however this template will fail to render in Home Assistant core 2022.6
2022-07-01 12:20:26 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-01 12:20:26 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-01 12:40:24 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0x0FF5:1:0x0001]: async_initialize: all attempts have failed: [DeliveryError('[0x0ff5:1:0x0001]: Message send failure'), DeliveryError('[0x0ff5:1:0x0001]: Message send failure'), DeliveryError('[0x0ff5:1:0x0001]: Message send failure'), DeliveryError('[0x0ff5:1:0x0001]: Message send failure')]
2022-07-01 12:40:24 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0x0FF5:1:0x0500]: async_initialize: all attempts have failed: [DeliveryError('[0x0ff5:1:0x0500]: Message send failure'), DeliveryError('[0x0ff5:1:0x0500]: Message send failure'), DeliveryError('[0x0ff5:1:0x0500]: Message send failure'), DeliveryError('[0x0ff5:1:0x0500]: Message send failure')]
2022-07-01 12:41:29 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0xFC6E:1:0x0500]: async_initialize: all attempts have failed: [DeliveryError('[0xfc6e:1:0x0500]: Message send failure'), DeliveryError('[0xfc6e:1:0x0500]: Message send failure'), DeliveryError('[0xfc6e:1:0x0500]: Message send failure'), DeliveryError('[0xfc6e:1:0x0500]: Message send failure')]
2022-07-01 12:41:30 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0xFC6E:1:0x0001]: async_initialize: all attempts have failed: [DeliveryError('[0xfc6e:1:0x0001]: Message send failure'), DeliveryError('[0xfc6e:1:0x0001]: Message send failure'), DeliveryError('[0xfc6e:1:0x0001]: Message send failure'), DeliveryError('[0xfc6e:1:0x0001]: Message send failure')]
2022-07-01 12:55:06 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0xE5A1:1:0x0500]: async_initialize: all attempts have failed: [DeliveryError('[0xe5a1:1:0x0500]: Message send failure'), DeliveryError('[0xe5a1:1:0x0500]: Message send failure'), DeliveryError('[0xe5a1:1:0x0500]: Message send failure'), DeliveryError('[0xe5a1:1:0x0500]: Message send failure')]
2022-07-01 12:55:06 WARNING (MainThread) [homeassistant.components.zha.core.channels.base] [0xE5A1:1:0x0001]: async_initialize: all attempts have failed: [DeliveryError('[0xe5a1:1:0x0001]: Message send failure'), DeliveryError('[0xe5a1:1:0x0001]: Message send failure'), DeliveryError('[0xe5a1:1:0x0001]: Message send failure'), DeliveryError('[0xe5a1:1:0x0001]: Message send failure')]
2022-07-01 13:04:43 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-01 13:04:43 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-01 13:49:54 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-01 13:49:54 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-01 15:26:45 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-01 15:26:45 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-01 16:03:32 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-01 16:03:32 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-01 17:30:36 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-01 17:30:36 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-01 18:00:00 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities switch.elettra_charger_switch
2022-07-01 18:14:29 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-01 18:14:29 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-01 19:04:58 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-01 19:04:58 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-01 20:10:06 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-01 20:10:06 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-01 21:01:09 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-01 21:01:09 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-01 21:48:27 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-01 21:48:27 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-01 22:03:19 ERROR (MainThread) [aiohttp.server] Error handling request
Traceback (most recent call last):
  File "/usr/local/lib/python3.9/site-packages/aiohttp/web_protocol.py", line 334, in data_received
    messages, upgraded, tail = self._request_parser.feed_data(data)
  File "aiohttp/_http_parser.pyx", line 551, in aiohttp._http_parser.HttpParser.feed_data
aiohttp.http_exceptions.BadStatusLine: 400, message="Bad status line 'Invalid method encountered'"
2022-07-01 22:52:20 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-01 22:52:20 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-02 00:12:50 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-02 00:12:50 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-02 01:44:45 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-02 01:44:45 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-02 03:43:48 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-02 03:43:48 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-02 06:00:00 WARNING (MainThread) [homeassistant.helpers.service] Unable to find referenced entities switch.elettra_charger_switch
2022-07-02 06:34:54 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-02 06:34:54 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-02 06:41:13 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-02 06:41:13 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-02 08:05:29 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-02 08:05:29 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-02 12:48:02 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-02 12:48:02 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-02 13:16:30 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
2022-07-02 13:16:30 WARNING (MainThread) [homeassistant.components.mqtt.mixins] JSON result was not a dictionary
``

I would post homeassistant.log, but there is a character limit on the post

Anyway, as usual, I cannot see anythng remotely helpful in the logs

:astonished:

Wow, your config is in bad shape.

Mostly not supplying default values for your templates and ignoring this warning:

https://www.home-assistant.io/docs/configuration/templating/#states

But also depreciated options in your config, missing entities and duplicated devices.

Start by fixing all that up.

I’ve fixed the states thing in the configuration.yaml, but now I’m getting this other error on the automations.yaml file

all I did was replacing

states. with states(’
and .state with ')

Use double quotes outside the template and single quotes inside. Otherwise you end up with this on line 477:

payload_template: '{{states('