Hello, I have configured Home Assistant to send data to InfluxDB.
This is all working, but some data are sent twice.
For ex. this is Aeotec ZW096 Smart Switch 6, and I see in log when it sends data:
2018-12-04 08:51:53.619 Detail, Node010, Received: 0x01, 0x10, 0x00, 0x04, 0x00, 0x0a, 0x0a, 0x32, 0x02, 0xa1, 0x64, 0x00, 0x03, 0x91, 0xf3, 0x00, 0x00, 0x7f
2018-12-04 08:51:53.619 Detail,
2018-12-04 08:51:53.619 Detail, Node010, Refreshed Value: old value=false, new value=false, type=bool
2018-12-04 08:51:53.619 Detail, Node010, Changes to this value are not verified
2018-12-04 08:51:53.619 Info, Node010, Received Meter report from node 10: Voltage=233.971V
2018-12-04 08:51:53.619 Detail, Node010, Refreshed Value: old value=234.473, new value=233.971, type=decimal
2018-12-04 08:51:53.619 Detail, Node010, Changes to this value are not verified
2018-12-04 08:51:53.619 Detail, Node010, Notification: ValueChanged
2018-12-04 08:51:53.621 Detail, Node010, Notification: ValueChanged
2018-12-04 08:51:53.718 Detail, Node010, Received: 0x01, 0x10, 0x00, 0x04, 0x00, 0x0a, 0x0a, 0x32, 0x02, 0xa1, 0x6c, 0x00, 0x00, 0x05, 0xd4, 0x00, 0x00, 0xc7
2018-12-04 08:51:53.719 Detail,
2018-12-04 08:51:53.719 Detail, Node010, Refreshed Value: old value=false, new value=false, type=bool
2018-12-04 08:51:53.719 Detail, Node010, Changes to this value are not verified
2018-12-04 08:51:53.719 Info, Node010, Received Meter report from node 10: Current=1.492A
2018-12-04 08:51:53.719 Detail, Node010, Refreshed Value: old value=1.509, new value=1.492, type=decimal
2018-12-04 08:51:53.719 Detail, Node010, Changes to this value are not verified
2018-12-04 08:51:53.719 Detail, Node010, Notification: ValueChanged
2018-12-04 08:51:53.721 Detail, Node010, Notification: ValueChanged
2018-12-04 08:51:53.820 Detail, Node010, Received: 0x01, 0x14, 0x00, 0x04, 0x00, 0x0a, 0x0e, 0x32, 0x02, 0x21, 0x64, 0x00, 0x00, 0x28, 0x60, 0x00, 0x3c, 0x00, 0x00, 0x28, 0x5c, 0x9e
2018-12-04 08:51:53.820 Detail,
2018-12-04 08:51:53.820 Detail, Node010, Refreshed Value: old value=false, new value=false, type=bool
2018-12-04 08:51:53.820 Detail, Node010, Changes to this value are not verified
2018-12-04 08:51:53.820 Info, Node010, Received Meter report from node 10: Energy=10.336kWh
2018-12-04 08:51:53.820 Detail, Node010, Refreshed Value: old value=10.332, new value=10.336, type=decimal
2018-12-04 08:51:53.820 Detail, Node010, Changes to this value are not verified
2018-12-04 08:51:53.820 Info, Node010, Previous value was 10.332kWh, received 60 seconds ago.
2018-12-04 08:51:53.820 Detail, Node010, Refreshed Value: old value=10.327, new value=10.332, type=decimal
2018-12-04 08:51:53.820 Detail, Node010, Changes to this value are not verified
2018-12-04 08:51:53.820 Detail, Node010, Refreshed Value: old value=60, new value=60, type=int
2018-12-04 08:51:53.820 Detail, Node010, Changes to this value are not verified
2018-12-04 08:51:53.820 Detail, Node010, Notification: ValueChanged
2018-12-04 08:51:53.821 Detail, Node010, Notification: ValueChanged
2018-12-04 08:51:53.822 Detail, Node010, Notification: ValueChanged
2018-12-04 08:51:53.822 Detail, Node010, Notification: ValueChanged
2018-12-04 08:51:53.918 Detail, Node010, Received: 0x01, 0x10, 0x00, 0x04, 0x00, 0x0a, 0x0a, 0x32, 0x02, 0x21, 0x74, 0x00, 0x04, 0x4c, 0x80, 0x00, 0x00, 0x46
2018-12-04 08:51:53.919 Detail,
2018-12-04 08:51:53.919 Detail, Node010, Refreshed Value: old value=false, new value=false, type=bool
2018-12-04 08:51:53.919 Detail, Node010, Changes to this value are not verified
2018-12-04 08:51:53.919 Info, Node010, Received Meter report from node 10: Power=281.728W
2018-12-04 08:51:53.919 Detail, Node010, Refreshed Value: old value=285.212, new value=281.728, type=decimal
2018-12-04 08:51:53.919 Detail, Node010, Changes to this value are not verified
2018-12-04 08:51:53.919 Detail, Node010, Notification: ValueChanged
2018-12-04 08:51:53.921 Detail, Node010, Notification: ValueChanged
this is all ok, but then Home Assistant send V and A data twice to InfluxDB! Why is this ?
V,domain=sensor,entity_id=ups_voltage friendly_name_str="UPS Voltage",node_id=10.0,power_consumption=285.212,value=233.97,value_id=7.205759421071386e+16,value_index=16.0,value_instance=1.0 1543909913725574144
A,domain=sensor,entity_id=ups_current friendly_name_str="UPS current",node_id=10.0,power_consumption=285.212,value=1.49,value_id=7.205759421071392e+16,value_index=20.0,value_instance=1.0 1543909913824696064
kWh,domain=sensor,entity_id=ups_energy friendly_name_str="UPS energy",node_id=10.0,power_consumption=281.728,value=10.34,value_id=7.20575942107136e+16,value_index=0.0,value_instance=1.0 1543909913926243072
W,domain=sensor,entity_id=ups_power friendly_name_str="UPS power",node_id=10.0,power_consumption=281.728,value=281.73,value_id=7.205759421071373e+16,value_index=8.0,value_instance=1.0 1543909914026242048
V,domain=sensor,entity_id=ups_voltage friendly_name_str="UPS Voltage",node_id=10.0,power_consumption=281.728,value=233.97,value_id=7.205759421071386e+16,value_index=16.0,value_instance=1.0 1543909914026464000
A,domain=sensor,entity_id=ups_current friendly_name_str="UPS current",node_id=10.0,power_consumption=281.728,value=1.49,value_id=7.205759421071392e+16,value_index=20.0,value_instance=1.0 1543909914026639104
and next update:
2018-12-04 08:52:53.618 Detail, Node010, Received: 0x01, 0x10, 0x00, 0x04, 0x00, 0x0a, 0x0a, 0x32, 0x02, 0xa1, 0x64, 0x00, 0x03, 0x93, 0x77, 0x00, 0x00, 0xf9
2018-12-04 08:52:53.618 Detail,
2018-12-04 08:52:53.619 Detail, Node010, Refreshed Value: old value=false, new value=false, type=bool
2018-12-04 08:52:53.619 Detail, Node010, Changes to this value are not verified
2018-12-04 08:52:53.619 Info, Node010, Received Meter report from node 10: Voltage=234.359V
2018-12-04 08:52:53.619 Detail, Node010, Refreshed Value: old value=233.971, new value=234.359, type=decimal
2018-12-04 08:52:53.619 Detail, Node010, Changes to this value are not verified
2018-12-04 08:52:53.619 Detail, Node010, Notification: ValueChanged
2018-12-04 08:52:53.621 Detail, Node010, Notification: ValueChanged
2018-12-04 08:52:53.718 Detail, Node010, Received: 0x01, 0x10, 0x00, 0x04, 0x00, 0x0a, 0x0a, 0x32, 0x02, 0xa1, 0x6c, 0x00, 0x00, 0x05, 0xd1, 0x00, 0x00, 0xc2
2018-12-04 08:52:53.718 Detail,
2018-12-04 08:52:53.718 Detail, Node010, Refreshed Value: old value=false, new value=false, type=bool
2018-12-04 08:52:53.719 Detail, Node010, Changes to this value are not verified
2018-12-04 08:52:53.719 Info, Node010, Received Meter report from node 10: Current=1.489A
2018-12-04 08:52:53.719 Detail, Node010, Refreshed Value: old value=1.492, new value=1.489, type=decimal
2018-12-04 08:52:53.719 Detail, Node010, Changes to this value are not verified
2018-12-04 08:52:53.719 Detail, Node010, Notification: ValueChanged
2018-12-04 08:52:53.721 Detail, Node010, Notification: ValueChanged
2018-12-04 08:52:53.820 Detail, Node010, Received: 0x01, 0x14, 0x00, 0x04, 0x00, 0x0a, 0x0e, 0x32, 0x02, 0x21, 0x64, 0x00, 0x00, 0x28, 0x65, 0x00, 0x3c, 0x00, 0x00, 0x28, 0x60, 0xa7
2018-12-04 08:52:53.820 Detail,
2018-12-04 08:52:53.820 Detail, Node010, Refreshed Value: old value=false, new value=false, type=bool
2018-12-04 08:52:53.820 Detail, Node010, Changes to this value are not verified
2018-12-04 08:52:53.820 Info, Node010, Received Meter report from node 10: Energy=10.341kWh
2018-12-04 08:52:53.820 Detail, Node010, Refreshed Value: old value=10.336, new value=10.341, type=decimal
2018-12-04 08:52:53.820 Detail, Node010, Changes to this value are not verified
2018-12-04 08:52:53.820 Info, Node010, Previous value was 10.336kWh, received 60 seconds ago.
2018-12-04 08:52:53.820 Detail, Node010, Refreshed Value: old value=10.332, new value=10.336, type=decimal
2018-12-04 08:52:53.820 Detail, Node010, Changes to this value are not verified
2018-12-04 08:52:53.820 Detail, Node010, Refreshed Value: old value=60, new value=60, type=int
2018-12-04 08:52:53.820 Detail, Node010, Changes to this value are not verified
2018-12-04 08:52:53.820 Detail, Node010, Notification: ValueChanged
2018-12-04 08:52:53.823 Detail, Node010, Notification: ValueChanged
2018-12-04 08:52:53.826 Detail, Node010, Notification: ValueChanged
2018-12-04 08:52:53.830 Detail, Node010, Notification: ValueChanged
2018-12-04 08:52:53.918 Detail, Node010, Received: 0x01, 0x10, 0x00, 0x04, 0x00, 0x0a, 0x0a, 0x32, 0x02, 0x21, 0x74, 0x00, 0x04, 0x4e, 0xd6, 0x00, 0x00, 0x12
2018-12-04 08:52:53.918 Detail,
2018-12-04 08:52:53.918 Detail, Node010, Refreshed Value: old value=false, new value=false, type=bool
2018-12-04 08:52:53.918 Detail, Node010, Changes to this value are not verified
2018-12-04 08:52:53.918 Info, Node010, Received Meter report from node 10: Power=282.326W
2018-12-04 08:52:53.919 Detail, Node010, Refreshed Value: old value=281.728, new value=282.326, type=decimal
2018-12-04 08:52:53.919 Detail, Node010, Changes to this value are not verified
2018-12-04 08:52:53.919 Detail, Node010, Notification: ValueChanged
2018-12-04 08:52:53.921 Detail, Node010, Notification: ValueChanged
and V and A data is again sent twice. Anyone have any idea why is this?
V,domain=sensor,entity_id=ups_voltage friendly_name_str="UPS Voltage",node_id=10.0,power_consumption=281.728,value=234.36,value_id=7.205759421071386e+16,value_index=16.0,value_instance=1.0 1543909973725299968
A,domain=sensor,entity_id=ups_current friendly_name_str="UPS current",node_id=10.0,power_consumption=281.728,value=1.49,value_id=7.205759421071392e+16,value_index=20.0,value_instance=1.0 1543909973827009792
kWh,domain=sensor,entity_id=ups_energy friendly_name_str="UPS energy",node_id=10.0,power_consumption=282.326,value=10.34,value_id=7.20575942107136e+16,value_index=0.0,value_instance=1.0 1543909973927323136
W,domain=sensor,entity_id=ups_power friendly_name_str="UPS power",node_id=10.0,power_consumption=282.326,value=282.33,value_id=7.205759421071373e+16,value_index=8.0,value_instance=1.0 1543909974026559232
V,domain=sensor,entity_id=ups_voltage friendly_name_str="UPS Voltage",node_id=10.0,power_consumption=282.326,value=234.36,value_id=7.205759421071386e+16,value_index=16.0,value_instance=1.0 1543909974027006976
A,domain=sensor,entity_id=ups_current friendly_name_str="UPS current",node_id=10.0,power_consumption=282.326,value=1.49,value_id=7.205759421071392e+16,value_index=20.0,value_instance=1.0 1543909974027437824
Home Assistant version is 0.83.2.
InfluxDB configuration:
influxdb:
host: 127.0.0.1
port: 8086
database: hass
default_measurement: state
exclude:
entities:
- sensor.aeotec_zw096_smart_switch_6_previous_reading
- sensor.aeotec_zw096_smart_switch_6_previous_reading_2
- sensor.aeotec_zw096_smart_switch_6_previous_reading_3
- sensor.aeotec_zw096_smart_switch_6_previous_reading_4
- sensor.aeotec_zw096_smart_switch_6_previous_reading_5
- sensor.aeotec_zw096_smart_switch_6_previous_reading_6
- sensor.yr_symbol
domains:
- group
- switch
- sun
- zwave