Hi everybody,
I think I found a bug but I need your analysis to confirm it
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)