Hello
I have problem for capture data in mysensors…
Arduino send Serial port Data into HA
That’s my configuration.yaml
mysensors:
gateways:
- device: '/dev/ttyUSB1'
persistence_file: 'path/mysensors1.json'
baud_rate: 115200
optimistic: false
persistence: true
retain: true
version: '2.2'
all library 2.2 version
Arduino Serial port
6299 TSF:MSG:SEND,25-25-0-0,s=11,c=1,t=45,pt=7,l=5,sg=0,ft=0,st=OK:15.0
6328 TSF:MSG:SEND,25-25-0-0,s=13,c=1,t=44,pt=7,l=5,sg=0,ft=0,st=OK:30.0
Home Assistant log error
2019-02-25 23:21:21 DEBUG (MainThread) [mysensors.handler] n:0 c:255 t:3 s:9 p:1308453 TSF:MSG:READ,25-25-0,s=11,c=1,t=45,pt=7,l=5,sg=0:15.0
2019-02-25 23:21:21 DEBUG (MainThread) [homeassistant.components.mysensors.gateway] Node update: node 25 child 11
2019-02-25 23:21:21 DEBUG (MainThread) [homeassistant.components.mysensors.helpers] Invalid values: {45: '15.0'}: climate platform: node 25 child 11: S_HVAC requires value_type V_HVAC_FLOW_STATE @ data[21]
2019-02-25 23:21:21 DEBUG (MainThread) [homeassistant.components.mysensors.device] Entity update: Master Termostat 25 7: value_type 0, value = 23.0
2019-02-25 23:21:21 DEBUG (MainThread) [mysensors.handler] n:0 c:255 t:3 s:9 p:1308482 TSF:MSG:READ,25-25-0,s=13,c=1,t=44,pt=7,l=5,sg=0:30.0
2019-02-25 23:21:21 DEBUG (MainThread) [homeassistant.components.mysensors.gateway] Node update: node 25 child 13
2019-02-25 23:21:21 DEBUG (MainThread) [homeassistant.components.mysensors.helpers] Invalid values: {44: '30.0'}: climate platform: node 25 child 13: S_HVAC requires value_type V_HVAC_FLOW_STATE @ data[21]
On that webside
My version is higher than 1.5
I tried to find a solution of this problem and I found in github homeassistant/components/mysensors
const.py
30 CLIMATE_SCHEMA = {PLATFORM: 'climate', TYPE: 'V_HVAC_FLOW_STATE'}
*******
67 'S_HVAC': [CLIMATE_SCHEMA],
I think home assistant cant add this state because don’t know it
In my opinion const.py /CLIMATE_SCHEMA should looks like that
30 CLIMATE_SCHEMA = {
PLATFORM: 'climate', TYPE: 'V_HVAC_FLOW_STATE',
PLATFORM: 'climate', TYPE: V_HVAC_SETPOINT_HEAT',
PLATFORM: 'climate', TYPE: 'V_HVAC_SETPOINT_COOL'
}
climate.py have TYPEs in code
How to fix that?
[SOLVED]
Ok I know where the problem is
Home Assistant need V_HVAC_FLOW_STATE to detect thermostat