So, I’m getting the following error;
2019-02-09 21:20:37 WARNING (MainThread) [homeassistant.components.mqtt.sensor] configuration variable "json_attributes" is deprecated, replace with "json_attributes_topic"
2019-02-09 21:20:37 WARNING (MainThread) [homeassistant.components.mqtt.sensor] configuration variable "json_attributes" is deprecated, replace with "json_attributes_topic"
So, I went thru the configuration of ALL my sensors, and did not find the “json_attributes” syntax being used. I also commented out, each sensor, one at a time, and restarted Hassio, then checked the log. But, the error never went away…
What am I missing???
I am including my “sensors.yaml” file, maybe someone will see something that I am missing.
#=============================================================
#======================== Weather Sensor =====================
#=============================================================
- platform: darksky
api_key: !secret darksky_api_key
monitored_conditions:
- nearest_storm_distance
- temperature
- dew_point
- wind_speed
- wind_bearing
- humidity
- pressure
- visibility
- precip_type
- cloud_cover
- hourly_summary
# - moon_phase
- platform: moon
# - platform: mqtt
# name: "Node RED"
# state_topic: "checkin/nodered"
# expire_after: 300
#=============================================================
#============Multi Sensors - by BRUH Automations==============
#=============================================================
- platform: mqtt
state_topic: "climate/li-room"
name: "Livingroom Humidity"
unit_of_measurement: "%"
value_template: '{{ value_json.humidity | round(1) }}'
- platform: mqtt
state_topic: "climate/li-room"
name: "Livingroom LDR"
unit_of_measurement: "LUX"
value_template: '{{ value_json.ldr }}'
- platform: mqtt
state_topic: "climate/li-room"
name: "Livingroom PIR"
value_template: '{{ value_json.motion }}'
- platform: mqtt
state_topic: "climate/li-room"
name: "Livingroom Temperature"
unit_of_measurement: "F"
value_template: '{{ value_json.temperature | round(1) }}'
- platform: mqtt
state_topic: "climate/li-room"
name: "Livingroom Real Feel"
unit_of_measurement: "F"
value_template: '{{ value_json.heatIndex | round(1) }}'
- platform: mqtt
state_topic: "climate/li-room"
name: "Livingroom WiFi RSSI"
unit_of_measurement: "db"
value_template: '{{ value_json.signal_strength }}'
- platform: mqtt
state_topic: "climate/cellar"
name: "Cellar Humidity"
unit_of_measurement: "%"
value_template: '{{ value_json.humidity | round(1) }}'
- platform: mqtt
state_topic: "climate/cellar"
name: "Cellar LDR"
##This sensor is not calibrated to actual LUX. Rather, this a map of the input voltage ranging from 0 - 1023.
unit_of_measurement: "LUX"
value_template: '{{ value_json.ldr }}'
- platform: mqtt
state_topic: "climate/cellar"
name: "Cellar PIR"
value_template: '{{ value_json.motion }}'
- platform: mqtt
state_topic: "climate/cellar"
name: "Cellar Temperature"
unit_of_measurement: "F"
value_template: '{{ value_json.temperature | round(1) }}'
- platform: mqtt
state_topic: "climate/cellar"
name: "Cellar Real Feel"
unit_of_measurement: "F"
value_template: '{{ value_json.heatIndex | round(1) }}'
- platform: mqtt
state_topic: "climate/cellar"
name: "Cellar WiFi RSSI"
unit_of_measurement: "db"
value_template: '{{ value_json.signal_strength }}'
#=============================================================
- platform: mqtt
state_topic: "climate/mb-room"
name: "Bedroom Humidity"
unit_of_measurement: "%"
value_template: '{{ value_json.humidity | round(1) }}'
- platform: mqtt
state_topic: "climate/mb-room"
name: "Bedroom LDR"
##This sensor is not calibrated to actual LUX. Rather, this a map of the input voltage ranging from 0 - 1023.
unit_of_measurement: "LUX"
value_template: '{{ value_json.ldr }}'
- platform: mqtt
state_topic: "climate/mb-room"
name: "Bedroom PIR"
value_template: '{{ value_json.motion }}'
- platform: mqtt
state_topic: "climate/mb-room"
name: "Bedroom Temperature"
unit_of_measurement: "F"
value_template: '{{ value_json.temperature | round(1) }}'
- platform: mqtt
state_topic: "climate/mb-room"
name: "Bedroom Real Feel"
unit_of_measurement: "F"
value_template: '{{ value_json.heatIndex | round(1) }}'
- platform: mqtt
state_topic: "climate/mb-room"
name: "Bedroom WiFi RSSI"
unit_of_measurement: "db"
value_template: '{{ value_json.signal_strength }}'
#=============================================================
- platform: mqtt
state_topic: "climate/ki-room"
name: "Kitchen Humidity"
unit_of_measurement: "%"
value_template: '{{ value_json.humidity | round(1) }}'
- platform: mqtt
state_topic: "climate/ki-room"
name: "Kitchen LDR"
##This sensor is not calibrated to actual LUX. Rather, mapped the input voltage to ranging from 0 - 1023.
unit_of_measurement: "LUX"
value_template: '{{ value_json.ldr }}'
- platform: mqtt
state_topic: "climate/ki-room"
name: "Kitchen PIR"
value_template: '{{ value_json.motion }}'
- platform: mqtt
state_topic: "climate/ki-room"
name: "Kitchen Temperature"
unit_of_measurement: "F"
value_template: '{{ value_json.temperature | round(1) }}'
- platform: mqtt
state_topic: "climate/ki-room"
name: "Kitchen Real Feel"
unit_of_measurement: "F"
value_template: '{{ value_json.heatIndex | round(1) }}'
- platform: mqtt
state_topic: "climate/ki-room"
name: "Kitchen WiFi RSSI"
unit_of_measurement: "db"
value_template: '{{ value_json.signal_strength }}'
#=============================================================
#====================== System Sensors =======================
#=============================================================
- platform: uptime
name: Time Online
unit_of_measurement: hours
#=============================================================
# - platform: speedtest
# minute:
# - 0
# - 15
# - 30
# - 45
# monitored_conditions:
# - download
# - upload
# - ping
- platform: systemmonitor
resources:
- type: disk_free
arg: /home
- type: swap_free
- type: processor_use
- type: last_boot
# - type: disk_use_percent
# arg: /home
# - type: disk_use
# arg: /home
# - type: memory_use_percent
# - type: memory_use
# - type: memory_free
# - type: swap_use_percent
# - type: swap_use
# - type: network_in
# arg: eth0
# - type: network_out
# arg: eth0
# - type: packets_in
# arg: eth0
# - type: packets_out
# arg: eth0
# - type: ipv4_address
# arg: eth0
# - type: ipv6_address
# arg: eth0
# - type: last_boot
# - type: process
# arg: octave-cli
# - type: load_15m
# - platform: cpuspeed
# name: "CPU Speed = "
# SSL Certificate, days til expiration
#=============================================================
- platform: cert_expiry
host: !secret ha_cert_exp
port: 443
scan_interval: 3600
#=============================================================
- platform: time_date
display_options:
- 'time'
- 'date'
- 'date_time'
#=============================================================
#================= POW Sensors - by DigiBlur =================
#=============================================================
- platform: mqtt
name: "Washer State"
state_topic: "stat/snf-washer/POWER"
icon: mdi:washing-machine
- platform: mqtt
name: "Washer Watts"
state_topic: "tele/snf-washer/SENSOR"
value_template: "{{value_json['ENERGY'].Power }}"
qos: 2
unit_of_measurement : "W"
icon: mdi:flash-circle
availability_topic: "tele/snf-washer/LWT"
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
name: "Washer Voltage"
state_topic: "tele/snf-washer/SENSOR"
value_template: "{{value_json['ENERGY'].Voltage }}"
qos: 2
unit_of_measurement : "V"
icon: mdi:flash-circle
availability_topic: "tele/snf-washer/LWT"
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
name: "Washer Amps"
state_topic: "tele/snf-washer/SENSOR"
value_template: "{{value_json['ENERGY'].Current }}"
qos: 2
unit_of_measurement : "A"
icon: mdi:flash-circle
availability_topic: "tele/snf-washer/LWT"
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
name: "Washer Energy Today"
state_topic: "tele/snf-washer/SENSOR"
value_template: "{{value_json['ENERGY'].Today }}"
qos: 2
unit_of_measurement : "kWh"
availability_topic: "tele/snf-washer/LWT"
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
name: "Washer Energy Yesterday"
state_topic: "tele/snf-washer/SENSOR"
value_template: "{{value_json['ENERGY'].Yesterday }}"
qos: 2
unit_of_measurement : "kWh"
availability_topic: "tele/snf-washer/LWT"
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
state_topic: "tele/snf-washer/STATE"
name: "Washer Signal"
unit_of_measurement: "%"
value_template: "{{value_json['Wifi'].RSSI }}"
availability_topic: "tele/snf-washer/LWT"
qos: 1
payload_available: "Online"
payload_not_available: "Offline"
#=============================================================
- platform: mqtt
name: "Refrigerator State"
state_topic: "stat/snf-refrig/POWER"
icon: mdi:fridge-outline
- platform: mqtt
name: "Refrigerator Watts"
state_topic: "tele/snf-refrig/SENSOR"
value_template: "{{value_json['ENERGY'].Power }}"
qos: 2
unit_of_measurement : "W"
icon: mdi:flash-circle
availability_topic: "tele/snf-refrig/LWT"
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
name: "Refrigerator Voltage"
state_topic: "tele/snf-refrig/SENSOR"
value_template: "{{value_json['ENERGY'].Voltage }}"
qos: 2
unit_of_measurement : "V"
icon: mdi:flash-circle
availability_topic: "tele/snf-refrig/LWT"
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
name: "Refrigerator Amps"
state_topic: "tele/snf-refrig/SENSOR"
value_template: "{{value_json['ENERGY'].Current }}"
qos: 2
unit_of_measurement : "A"
icon: mdi:flash-circle
availability_topic: "tele/snf-refrig/LWT"
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
name: "Refrigerator Energy Today"
state_topic: "tele/snf-refrig/SENSOR"
value_template: "{{value_json['ENERGY'].Today }}"
qos: 2
unit_of_measurement : "kWh"
availability_topic: "tele/snf-refrig/LWT"
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
name: "Refrigerator Energy Yesterday"
state_topic: "tele/snf-refrig/SENSOR"
value_template: "{{value_json['ENERGY'].Yesterday }}"
qos: 2
unit_of_measurement : "kWh"
availability_topic: "tele/snf-refrig/LWT"
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
state_topic: "tele/snf-refrig/STATE"
name: "Refrigerator Signal"
unit_of_measurement: "%"
value_template: "{{value_json['Wifi'].RSSI }}"
availability_topic: "tele/snf-refrig/LWT"
qos: 1
payload_available: "Online"
payload_not_available: "Offline"
#=============================================================
- platform: mqtt
name: "SNF Spare 1 State"
state_topic: "stat/snf-spare1/POWER"
icon: mdi:fridge-outline
- platform: mqtt
name: "SNF Spare 1 Watts"
state_topic: "tele/snf-spare1/SENSOR"
value_template: "{{value_json['ENERGY'].Power }}"
qos: 2
unit_of_measurement : "W"
icon: mdi:flash-circle
availability_topic: "tele/snf-spare1/LWT"
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
name: "SNF Spare 1 Voltage"
state_topic: "tele/snf-spare1/SENSOR"
value_template: "{{value_json['ENERGY'].Voltage }}"
qos: 2
unit_of_measurement : "V"
icon: mdi:flash-circle
availability_topic: "tele/snf-spare1/LWT"
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
name: "SNF Spare 1 Amps"
state_topic: "tele/snf-spare1/SENSOR"
value_template: "{{value_json['ENERGY'].Current }}"
qos: 2
unit_of_measurement : "A"
icon: mdi:flash-circle
availability_topic: "tele/snf-spare1/LWT"
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
name: "SNF Spare 1 Energy Today"
state_topic: "tele/snf-spare1/SENSOR"
value_template: "{{value_json['ENERGY'].Today }}"
qos: 2
unit_of_measurement : "kWh"
availability_topic: "tele/snf-spare1/LWT"
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
name: "SNF Spare 1 Energy Yesterday"
state_topic: "tele/snf-spare1/SENSOR"
value_template: "{{value_json['ENERGY'].Yesterday }}"
qos: 2
unit_of_measurement : "kWh"
availability_topic: "tele/snf-spare1/LWT"
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
state_topic: "tele/snf-spare1/STATE"
name: "SNF Spare 1 Signal"
unit_of_measurement: "%"
value_template: "{{value_json['Wifi'].RSSI }}"
availability_topic: "tele/snf-spare1/LWT"
qos: 1
payload_available: "Online"
payload_not_available: "Offline"
#=============================================================
- platform: mqtt
name: "SNF Spare 2 State"
state_topic: "stat/snf-spare2/POWER"
icon: mdi:fridge-outline
- platform: mqtt
name: "SNF Spare 2 Watts"
state_topic: "tele/snf-spare2/SENSOR"
value_template: "{{value_json['ENERGY'].Power }}"
qos: 2
unit_of_measurement : "W"
icon: mdi:flash-circle
availability_topic: "tele/snf-spare2/LWT"
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
name: "SNF Spare 2 Voltage"
state_topic: "tele/snf-spare2/SENSOR"
value_template: "{{value_json['ENERGY'].Voltage }}"
qos: 2
unit_of_measurement : "V"
icon: mdi:flash-circle
availability_topic: "tele/snf-spare2/LWT"
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
name: "SNF Spare 2 Amps"
state_topic: "tele/snf-spare2/SENSOR"
value_template: "{{value_json['ENERGY'].Current }}"
qos: 2
unit_of_measurement : "A"
icon: mdi:flash-circle
availability_topic: "tele/snf-spare2/LWT"
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
name: "SNF Spare 2 Energy Today"
state_topic: "tele/snf-spare2/SENSOR"
value_template: "{{value_json['ENERGY'].Today }}"
qos: 2
unit_of_measurement : "kWh"
availability_topic: "tele/snf-spare2/LWT"
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
name: "SNF Spare 2 Energy Yesterday"
state_topic: "tele/snf-spare2/SENSOR"
value_template: "{{value_json['ENERGY'].Yesterday }}"
qos: 2
unit_of_measurement : "kWh"
availability_topic: "tele/snf-spare2/LWT"
payload_available: "Online"
payload_not_available: "Offline"
- platform: mqtt
state_topic: "tele/snf-spare2/STATE"
name: "SNF Spare 2 Signal"
unit_of_measurement: "%"
value_template: "{{value_json['Wifi'].RSSI }}"
availability_topic: "tele/snf-spare2/LWT"
qos: 1
payload_available: "Online"
payload_not_available: "Offline"
#=============================================================
- platform: mqtt
name: "Current LED"
state_topic: "stat/led_pole_1/locator"
#=============================================================
#====================== Stocks to Watch=======================
#=======================XYSTJS1QZXGHIMV1.=====================
- platform: alpha_vantage
api_key: !secret alpha_vantage_key
symbols:
- symbol: HPQ
name: Hewlett-Packard Inc.
- symbol: HPE
name: Hewlett-Packard Enterprise Co.
- symbol: MRMD
name: MariMed Inc.
# - symbol: ARNA
# name: Arena Pharmaceuticals Inc.
# - symbol: CARA
# name: Cara Therapeutics Inc.
# - symbol: CRBP
# name: Corbus Pharmaceuticals Holdings Inc.
# - symbol: CRON
# name: Cronos Group Inc.
# - symbol: GWPH
# name: GW Pharmaceuticals Plc.
# - symbol: INSY
# name: Insys Therapeutics Inc.
# - symbol: NTEC
# name: Intec Pharma Ltd.
# - symbol: MBII
# name: Marrone Bio Innovations, Inc.
# - symbol: PMD
# name: Psychemedics Corporation
# - symbol: TRPX
# name: Therapix Biosciences Ltd.
# - symbol: TLRY
# name: Tilray Inc.
# - symbol: ZYNE
# name: Zynerba Pharmaceuticals Inc.
#=============================================================