Entities not appear after check config (UI and Command line ) and reboot - platform aRest | Sonoff 4 CH Flash ESPEASY HTTP request

Hi everybody,

I think I found a bug but I need your analysis to confirm it :slight_smile:

I have an sonoff 4 ch flash with espeasy, my radiators are connected to the sonoff 4CH with diodes.

I have 4 thermostats in Home Assistant, they must each activate / deactivate the switch so the corresponding sonoff pin, by a http request.

In configuration.yaml :

climate: !include climate.yaml
switch: !include switch.yaml

2 files are in the same folder of configuration.yaml.

In climate.yaml, 1 Thermostat for example, currently in param heater i have a switch.kankun ( for validate the entities thermostat )

# Thermostat
- platform: generic_thermostat
  name: Thermostat S
  heater: switch.kankun
  target_sensor: sensor.temperature_158d0001f50b4d
  min_temp: 18
  max_temp: 25
  ac_mode: false
  target_temp: 19
  cold_tolerance: 0.3
  hot_tolerance: 0.3
  min_cycle_duration:
    seconds: 5
  keep_alive:
    minutes: 3
  initial_hvac_mode: "off"
  away_temp: 16
  precision: 0.1

In switch.yaml :

- platform: arest
  resource: http://192.168.31.177/
  name: Sonoff_4_CH
  pins:
    6:
      name: rad_S
      invert: true
    8:
      name: rad_ChP
      invert: true
    2:
      name: rad_ChEA
      invert: true
    1:
      name: rad_SdB
      invert: true

In configurator, no error in files .yaml

I have check config in commande Line and UI , it’s ok.

After reboot, the entities not appear ( i look in dev tools --> States )

In dev tools --> newspaper, i have this error :

Error while setting up platform arestTraceback (most recent call last): File "/usr/src/homeassistant/homeassistant/helpers/entity_platform.py", line 150, in _async_setup_platform await asyncio.wait_for(asyncio.shield(task), SLOW_SETUP_MAX_WAIT) File "/usr/local/lib/python3.7/asyncio/tasks.py", line 442, in wait_for return fut.result() File "/usr/local/lib/python3.7/concurrent/futures/thread.py", line 57, in run result = self.fn(*self.args, self.kwargs) File "/usr/src/homeassistant/homeassistant/components/arest/switch.py", line 62, in setup_platform config.get(CONF_NAME, response.json()[CONF_NAME]), File "/usr/local/lib/python3.7/site-packages/requests/models.py", line 897, in json return complexjson.loads(self.text, kwargs) File "/usr/local/lib/python3.7/site-packages/simplejson/init.py", line 525, in loads return _default_decoder.decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 370, in decode obj, end = self.raw_decode(s) File "/usr/local/lib/python3.7/site-packages/simplejson/decoder.py", line 400, in raw_decode return self.scan_once(s, idx=_w(s, idx).end()) simplejson.errors.JSONDecodeError: Expecting value: line 1 column 1 (char 0)

i have use an other platform ( command_line ) :

- platform: command_line
  switches:
    arest_pin_twelve:
      command_on: "/usr/bin/curl -X GET http://192.168.31.177/control?cmd=gpio,12,0"
      command_off: "/usr/bin/curl -X GET http://192.168.31.177/control?cmd=gpio,12,1"
#      command_state: "/usr/bin/curl -X GET http://192.168.31.177/digital/12"
      friendly_name: rad_S
    arest_pin_fifteen:
      command_on: "/usr/bin/curl -X GET http://192.168.31.177/control?cmd=gpio,15,0"
      command_off: "/usr/bin/curl -X GET http://192.168.31.177/control?cmd=gpio,15,1"
#      command_state: "/usr/bin/curl -X GET http://192.168.31.177/digital/15"
      friendly_name: rad_ChP
    arest_pin_four:
      command_on: "/usr/bin/curl -X GET http://192.168.31.177/control?cmd=gpio,4,0"
      command_off: "/usr/bin/curl -X GET http://192.168.31.177/control?cmd=gpio,4,1"
#      command_state: "/usr/bin/curl -X GET http://192.168.31.177/digital/4"
      friendly_name: rad_ChEA
    arest_pin_five:
      command_on: "/usr/bin/curl -X GET http://192.168.31.177/control?cmd=gpio,5,0"
      command_off: "/usr/bin/curl -X GET http://192.168.31.177/control?cmd=gpio,5,1"
#      command_state: "/usr/bin/curl -X GET http://192.168.31.177/digital/5"
      friendly_name: rad_SdB