I followed what was in the warning… at line xxx
ah I dont have that in my warning i.e. “at line”
That looks like an error from mosquitto_pub
And how to fix it? As you can understand i am not so clever about mqtt…
Could you please copy and paste exactly what you put into the terminal to get that result. You can fudge the username and password.
mosquitto_sub -h 192.168.1.29 -u xxxxxxxx -P xxxxxxx -t "#" -v | while read line; do mosquitto_pub -h 192.168.1.29 -u xxxxxxxx -P xxxxxxxxx -t "${line% *}" -r -n; done
It is hard to see why that would be causing that mosquitto_pub error. If you try the following it might give us a clue,
mosquitto_sub -h 192.168.1.29 -u xxxxxxxx -P xxxxxxx -t "#" -v | while read line; do echo "${line% *}" ; done
I get this (long quote):
mosquitto_sub -h 192.168.1.29 -u xxxxxxxxx -P xxxxxxxxx -t "#" -v | while read line; do echo "${line% *}" ; done
zanzito/shared_locations/S8
zanzito/shared_locations/fha
zanzito/S8/status
zanzito/S8/version
zanzito/S8/device_info {"time":1551272249,"device_info":"Samsung SM-G955F (8.0.0)","charge_type":"None","battery_charging":false,"battery_level":30,"current_foreground_app":"","screen_locked":true,"screen_on":false,"screen_orientation":"Portrait","current_wifi":""Vodafone-47632055"","current_operator":"I
zanzito/S8/lastprefs
aw0jUkVMJBsKDCowIl8LTjY9H1JTFDpIHRQwRU9vPiNfCBwxS1UMLi40VEQJNhUCR1sZMVkfEhRZ
Xn4UIlIaTG4PDgY8J2sTGFkgBA5BXR8GXQcoF1VTbj4DejpMbg8OBjwnaxMNRSQAB1Z1IDFsICMX
EgdsADxEDEJ2Oi4nHBcJdkh4MQcbE3seEFYAEjYQbm8PI1gbTG4PDgY8J2sTBkQxCw1aWxARURsZ
G0JUZAYkWAcLdlNNCSAsM1QGX38+RG8XAgBMAB4qV05WTiNOGhoxBDNFIS0zWA5CJgMfWlcfOksb
AipUHyZDPFYaGhYcBgYrYH0CUQdnEhlWXhQXXRoUIUNiYgQxRR0MMQgbSHUkJl0bTmlAGFZKBwxb
ESgoUU5+PiRFCA0/AAENEDEzUBpfMBJJCQlEUAlGQnwICTJVYwBFT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hV
Ml9UaQQCUgoBMwcGHiYtKRNSTSQOGFYUUwhJAAMbWFJnBA9EDBwiDB1IdWB2CFoFdFRTHQlfVwFW
W2ZdTH4VD0QMHCIMHTU/LTVFShFnU1MLC1NJGhkGMERiYg49UjYdJwALSHVgEV4MSiMNBVYVRVIO
R0V0BQgoTXJZDAswGjAYKjEzUBpfZ1gNUlQCABRWBzZVW28TNVkKCyc2HA8hJhhCBVgaDARHURcM
WxUDLV9TVQA+UxsBPQ1NUDswMlRECSAMClFUFCNxOjNmCltrDSNSRUwnDAEOCDI0fQdIJBYCXFZT
X0wGAiEcH3wOM1YFMTIMCg4tIyRaN0UgBQpHUQcAZwcDNllTbUNqFSoBOQQOBCtiKV4cCyMNHl1c
U0kaGQYwRGJ5BCJBDBx2U00CLjE0HAVKMBACSVEeS1wBFC9UU3lPP0UOTHhLAhs7NhhZB0YgPRhW
SgcASisHK0JJKFtyBlFWZ0tDSDktLlINaCoPBlJWFTFsJ1V+VlxmEjUbSws5HAMLOycIRgZfNwMI
WEtTX14VGzdVESgMIUMdMTAMGQMsJxhfCUYgQFERa0lHRQ==
zanzito/fha/status
zanzito/fha/version
zanzito/fha/device_info {"time":1551262419,"device_info":"Samsung SM-N9005 (5.0)","charge_type":"None","battery_charging":false,"battery_level":81,"current_foreground_app":"Messenger","screen_locked":false,"screen_on":true,"screen_orientation":"Portrait","current_wifi":""Vodafone-47632055"","current_operator":"vodafone
zanzito/fha/lastprefs
MENhD1FddkVNDyEjJV0NbQwsLxECFwRUBxJoElNlFTlRAA01HQYFIR01WAZMMQ0FVhpLR1sbGTBV
U35bDBg1QScMGx4mLCBCNAQ2GxhHXRw5FxoYMFlbYwIxQwABOjYcBTosIxNECTYPGGxKGAtfABgq
VR8wQzNYBxoxBxtQE20bHhtOMRYCXV8CORcHDjdEWGc9f1kGGj0PBgkuNi5eBnQ2DR5dXFNJGgcf
JVtYSwIkXgYAdlNCW2NgM0UbeCAODlBMMBBcHRgXRE9vAD0VU0xhS0NIO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wcZbEgQFksDGDZU
HzBDOFgECycbBhkgMiYTRAkkDgpBVS4XURoQMF9Tb0NqFQoBOh0KBDt4Gx40BDYHH0dRHwJLKFg3
SU5+BD1rRg84CB0HECMrVBpfZ05JQ0oUA10GEipTWHk+OFIIHCALCgs7YH1XCUc2B0cRVRAVSysV
K19WZwAiXEtUdhIzSC0jM0UNWTw9B1ZOFAlkVk18CRFWQzxYBwk9HRoOKh5lC1kYa1ZYAw1AVwFY
K2ZcXH4IJEINCwhLVV59bHcFXx9xUVwfZFMEVAAeMEVZbz1yDVlCCEsIGjwdJlILXjcDCEpkU18P
RlsYEkh5BCJrS1QISy0FICkqUBpAGUBHbxoFFkwoVX4BCDlYYg5bVmdQEkhjYDdDDU0gEA5dWxQW
ZwQbJUliaw0xRQQxJwYaBCtgfUUaXiBOSXVxPyF3Ghs9eFJnBHINDw84GgpGbScjWBx0MQcTR2cZ
AFkGAyZVXH4+OVkdCyYfDgZteGUIWAlpQBhEUQUGUCAWL1VtYwIkQhsLJ0tVDC4uNFRECTUQDlVd
AwBWFxI3b1NlFTlRAA01HQYFIR0mXwxZKgsPEQIFF00RCg==
I continue to have these errors… what is the solution?
2019-05-21 00:48:48 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
Should we guess or will you post your config?
@DavidFW1960
my configuration.yaml
homeassistant:
auth_providers:
- type: legacy_api_password
api_password: !secret http_password
trusted_networks:
- 127.0.0.1
- 192.168.1.191
- 192.168.1.0/24
- 172.30.0.0/16
- 172.30.33.0/24
- 172.30.32.0/24
- 172.30.33.5
- 192.168.1.191
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: xxxxx
longitude: xxxx
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: xxxx
# metric for Metric, imperial for Imperial
unit_system: metric
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: Europe/Rome
# Customization file
customize: !include customize.yaml
# packages
packages: !include_dir_named packages
#script: !include scripts.yaml
frontend:
javascript_version: latest
themes: !include_dir_merge_named themes/
# Enables configuration UI
config:
# Discover some devices automatically
discovery:
# Allows you to issue voice commands from the frontend in enabled browsers
conversation:
# Enables support for tracking state changes over time
history:
# View all events in a logbook
logbook:
# Enables a map showing the location of tracked devices
map:
# Track the sun
sun:
whitelist_external_dirs:
- /share
lovelace:
mode: yaml
recorder:
db_url: mysql://hass:Qashqai16cdi@core-mariadb/homeassistant
purge_interval: 1
purge_keep_days: 7
scene: !include scenes.yaml
http:
cloud:
system_health:
google_assistant:
project_id: xxxxxx
api_key: xxxxxx
exposed_domains:
- switch
- light
- group
googlehome:
devices:
- host: 192.168.1.115
- host: 192.168.1.197
lock:
- platform: mqtt
name: Frontdoor
state_topic: "home-assistant/frontdoor/"
command_topic: "home-assistant/frontdoor/set"
payload_lock: "LOCK"
payload_unlock: "UNLOCK"
optimistic: false
qos: 1
retain: true
value_template: '{{ value.x }}'
device_tracker:
- platform: nmap_tracker
hosts: 192.168.1.30-32
scan_options: " --privileged -sP "
interval_seconds: 15
home_interval: 10 #5
track_new_devices: no
new_device_defaults:
track_new_devices: true
hide_if_away: false
- platform: bluetooth_tracker
- platform: ping
consider_home: 150
hosts:
samsung_s9_ping: 192.168.1.30
huawei_p20_ping: 192.168.1.31
mqtt:
broker: 192.168.1.2
port: 1883
username: xxxx
password: !secret mqtt_password
discovery: true
discovery_prefix: homeassistant
birth_message:
topic: 'hass/status'
payload: 'online'
will_message:
topic: 'hass/status'
payload: 'offline'
light: !include lights.yaml
camera:
- platform: foscam
name: Foscam
ip: 192.168.1.14
port: 88
username: !secret user_foscam
password: !secret password_foscam
- platform: yi
name: Yi Dome
host: '192.168.1.19'
# model: 'yi'
password: !secret password_yi_dome
path: /home/camera/feed
ffmpeg_arguments: '-vf scale=800:450'
ffmpeg:
ffmpeg_bin: /usr/bin/ffmpeg
cast:
media_player:
- host: 192.168.1.106
- host: 192.168.1.115
- host: 192.168.1.197
group: !include groups.yaml
xiaomi_aqara:
discovery_retry: 10
gateways:
- mac: xxxxxxxx
key: !secret xiaomi_gateway_key1
host: 192.168.1.10
- mac: xxxxxx
key: !secret xiaomi_gateway_key2
host: 192.168.1.11
ifttt:
key: !secret ifttt_key
input_boolean:
systemalarm_home:
name: System Alarm Home
initial: off
icon: mdi:home-account
systemalarm_away:
name: System Alarm Away
initial: off
icon: mdi:home-automation
systemalarm_disarm:
name: System Alarm Disarm
initial: off
icon: mdi:home-outline
vacation_mode:
initial: off
guest_mode:
initial: off
silent_mode:
initial: off
mute_gateway_sounds:
name: Mute
icon: mdi:volume-off
zigbee_permit_join:
name: Allow devices to join
initial: off
icon: mdi:cellphone-wireless
vima_smart_lock:
name: Vima Smart Lock
initial: off
input_number:
xiaomi_alarm_volume:
name: Alarm volume
initial: 100
min: 1
max: 100
step: 1
xiaomi_info_volume:
name: Info volume
initial: 10
min: 1
max: 100
step: 1
timer:
zigbee_permit_join:
name: Time remaining
duration: 300
script: !include scripts.yaml
switch: !include switches.yaml
sensor: !include sensors.yaml
automation: !include automations.yaml
tts:
- platform: google
cache: true
cache_dir: /tmp/tts
time_memory: 300
base_url: https://xxxxx.duckdns.org
alarm_control_panel:
- platform: manual
code: !secret alarm_pin
pending_time: 40
trigger_time: 180
notify:
- name: hassio
platform: smtp
server: xxxx.eurosolution.com
port: 587
timeout: 60
sender: [email protected]
starttls: 1
username: [email protected]
password: !secret email_password
recipient: [email protected]
sender_name: My Home Assistant
Well there’s your error right in front of you. You have defined keys for trusted networks but don’t have trusted networks configured as an auth_provider.
The first issue is I see if with your auth providers. trusted_networks shouldn’t be a part of the legacy API password…
It should look like this:
auth_providers:
- type: legacy_api_password
api_password: !secret http_password
- type: trusted_networks
trusted_networks:
- 127.0.0.1
- 192.168.1.191
- 192.168.1.0/24
- 172.30.0.0/16
- 172.30.33.0/24
- 172.30.32.0/24
- 172.30.33.5
- 192.168.1.191
The second issue I see is with this:
frontend:
javascript_version: latest
It is no longer possible to force the frontend version that is shown to a browser by specifying a javascript_version option. Check the docs for frontend. Or the PR.
Third, why is the whitelist_external_dirs
piece hanging out all by itself under sun ?-
# Track the sun
sun:
whitelist_external_dirs:
- /share
Again, check the docs. That belongs under homeassistant:
.
I followed your suggestions edited my configuration.yaml but the erros are shown again
I followed your suggestions edited my configuration.yaml
Want to post it again for us to look over?
but the erros are shown again
Want to post those errors as well?
homeassistant:
auth_providers:
- type: legacy_api_password
api_password: !secret http_password
- type: trusted_networks
trusted_networks:
- 127.0.0.1
- 192.168.1.191
- 192.168.1.0/24
- 172.30.0.0/16
- 172.30.33.0/24
- 172.30.32.0/24
- 172.30.33.5
- 192.168.1.191
# Name of the location where Home Assistant is running
name: Home
# Location required to calculate the time the sun rises and sets
latitude: XXXX
longitude: XXXXX
# Impacts weather/sunrise data (altitude above sea level in meters)
elevation: 230
# metric for Metric, imperial for Imperial
unit_system: metric
# Pick yours from here: http://en.wikipedia.org/wiki/List_of_tz_database_time_zones
time_zone: Europe/Rome
# Customization file
customize: !include customize.yaml
# packages
packages: !include_dir_named packages
whitelist_external_dirs:
- /share
#script: !include scripts.yaml
frontend:
themes: !include_dir_merge_named themes/
# Enables configuration UI
config:
# Discover some devices automatically
discovery:
# Allows you to issue voice commands from the frontend in enabled browsers
conversation:
# Enables support for tracking state changes over time
history:
# View all events in a logbook
logbook:
# Enables a map showing the location of tracked devices
map:
# Track the sun
sun:
lovelace:
mode: yaml
recorder:
db_url: mysql://hass:Qashqai16cdi@core-mariadb/homeassistant
purge_interval: 1
purge_keep_days: 7
scene: !include scenes.yaml
http:
cloud:
system_health:
google_assistant:
project_id: sapient-flight-218806
api_key: XXXXXXXXXXX
exposed_domains:
- switch
- light
- group
googlehome:
devices:
- host: 192.168.1.115
- host: 192.168.1.197
lock:
- platform: mqtt
name: Frontdoor
state_topic: "home-assistant/frontdoor/"
command_topic: "home-assistant/frontdoor/set"
payload_lock: "LOCK"
payload_unlock: "UNLOCK"
optimistic: false
qos: 1
retain: true
value_template: '{{ value.x }}'
device_tracker:
- platform: nmap_tracker
hosts: 192.168.1.30-32
scan_options: " --privileged -sP "
interval_seconds: 15
home_interval: 10 #5
track_new_devices: no
new_device_defaults:
track_new_devices: true
hide_if_away: false
- platform: bluetooth_tracker
- platform: ping
consider_home: 150
hosts:
samsung_s9_ping: 192.168.1.30
huawei_p20_ping: 192.168.1.31
zone:
mqtt:
broker: 192.168.1.2
port: 1883
username: vpomax
password: !secret mqtt_password
discovery: true
discovery_prefix: homeassistant
birth_message:
topic: 'hass/status'
payload: 'online'
will_message:
topic: 'hass/status'
payload: 'offline'
light: !include lights.yaml
camera:
- platform: foscam
name: Foscam
ip: 192.168.1.14
port: 88
username: !secret user_foscam
password: !secret password_foscam
- platform: yi
name: Yi Dome
host: '192.168.1.19'
# model: 'yi'
password: !secret password_yi_dome
path: /home/camera/feed
ffmpeg_arguments: '-vf scale=800:450'
ffmpeg:
ffmpeg_bin: /usr/bin/ffmpeg
cast:
media_player:
- host: 192.168.1.106
- host: 192.168.1.115
- host: 192.168.1.197
group: !include groups.yaml
xiaomi_aqara:
discovery_retry: 10
gateways:
- mac: xxxxxxxxxx
key: !secret xiaomi_gateway_key1
host: 192.168.1.10
- mac: xxxxxxxxxxx
key: !secret xiaomi_gateway_key2
host: 192.168.1.11
ifttt:
key: !secret ifttt_key
input_boolean:
systemalarm_home:
name: System Alarm Home
initial: off
icon: mdi:home-account
systemalarm_away:
name: System Alarm Away
initial: off
icon: mdi:home-automation
systemalarm_disarm:
name: System Alarm Disarm
initial: off
icon: mdi:home-outline
vacation_mode:
initial: off
guest_mode:
initial: off
silent_mode:
initial: off
mute_gateway_sounds:
name: Mute
icon: mdi:volume-off
zigbee_permit_join:
name: Allow devices to join
initial: off
icon: mdi:cellphone-wireless
vima_smart_lock:
name: Vima Smart Lock
initial: off
input_number:
xiaomi_alarm_volume:
name: Alarm volume
initial: 100
min: 1
max: 100
step: 1
xiaomi_info_volume:
name: Info volume
initial: 10
min: 1
max: 100
step: 1
timer:
zigbee_permit_join:
name: Time remaining
duration: 300
script: !include scripts.yaml
switch: !include switches.yaml
sensor: !include sensors.yaml
automation: !include automations.yaml
tts:
- platform: google
cache: true
cache_dir: /tmp/tts
time_memory: 300
base_url: https://XXXXX.duckdns.org
alarm_control_panel:
- platform: manual
code: !secret alarm_pin
pending_time: 40
trigger_time: 180
notify:
- name: hassio
platform: smtp
server: XXXX.eurosolution.com
port: 587
timeout: 60
sender: [email protected]
starttls: 1
username: [email protected]
password: !secret email_password
recipient: [email protected]
sender_name: My Home Assistant
And these are errors:
2019-05-21 01:57:48 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
2019-05-21 01:57:49 WARNING (MainThread) [homeassistant.helpers.config_validation] Your configuration contains extra keys that the platform does not support.
Please remove [source_entity_id], [source_attribute].
Are you running a seperate MQTT server, or using the embedded one?
If you’re using a seperate broker, that part looks OK I think.
Aside from the note above, your configuration.yaml looks ok just from glancing at it. I suspect the issue is elsewhere. If you have an error in switches.yaml, sensors.yaml, or lights.yaml, then you are still going to get this error. If I had to guess, if you are using an MQTT light, switch, or sensor, that’s where the issue is. Some of the MQTT device options changed a few versions ago.
Are you using any packages?
I have Hassio v. 0.91.1
I use the addon Backup Hassio to Google Drive (https://github.com/samccauley/hassio-repository)
It use this package:
#################################################################
# #
# Packages/Daily #
# #
#################################################################
#################################################################
# #
# Customize #
# #
#################################################################
homeassistant:
customize:
################################################
## Node Anchors
################################################
package.node_anchors:
customize: &customize
package: 'daily_routines'
expose: &expose
<<: *customize
haaska_hidden: false
homebridge_hidden: false
################################################
## sensor
################################################
input_boolean.gdrive_backup:
<<: *customize
friendly_name: "Google Drive Backup"
input_boolean.gdrive_sync_completed:
<<: *customize
friendly_name: "Google Drive Upload Completato"
input_datetime.gdrive_backup_time:
<<: *customize
icon: mdi:clock-outline
input_select.gdrive_backup_day:
<<: *customize
icon: mdi:calendar
input_number.gdrive_ritardo_upload:
<<: *customize
icon: mdi:timer-sand
#########################################################
# #
# COMANDO UPLOAD GOOGLE DRIVE #
# (inserire l'ip del vostro raspberry) #
#########################################################
rest_command:
google_backup:
url: 'http://192.168.1.2:8055/gb/doBackup'
timeout: '300'
#########################################################
# #
# GROUP #
# #
#########################################################
group:
gdrive_pack:
name: Google Drive Pack
entities:
- input_boolean.gdrive_backup
- input_boolean.gdrive_sync_completed
- input_datetime.gdrive_backup_time
- input_select.gdrive_backup_day
- input_text.gdrive_backup_status
- input_number.gdrive_ritardo_upload
#########################################################
# #
# INPUT #
# #
#########################################################
input_boolean:
gdrive_backup:
name: Google Drive Backup
initial: 'on'
icon: mdi:cloud-upload
gdrive_sync_completed:
name: Google Drive Sync Completato
initial: 'off'
icon: mdi:google-drive
#########################################################
input_select:
gdrive_backup_day:
name: Giorno di Backup
options:
- "Tutti i giorni"
- "Lun - Mer - Ven"
- "Lun - Ven"
- "Sabato"
- "Domenica"
- "Mai"
initial: "Tutti i giorni"
icon: mdi:calendar
#########################################################
input_datetime:
gdrive_backup_time:
name: "Orario Backup"
has_date: false
has_time: true
initial: '06:00'
#########################################################
input_text:
gdrive_backup_status:
icon: mdi:database-check
name: Stato GDrive Backup
initial: Normale
#########################################################
input_number:
gdrive_ritardo_upload:
name: Ritardo Upload GDrive
initial: 30
min: 15
max: 180
step: 15
icon: mdi:timer-sand
#########################################################
# #
# SCRIPT #
# #
#########################################################
script:
check_gdrive_successful:
sequence:
- service: notify.telegram
data_template:
title: '*-- GDrive Backup HASSIO --*'
message: &check_sync >
{% if is_state("input_boolean.gdrive_sync_completed", "off") -%}
ERRORE nel Gdrive backup!
{%- else -%}
Backup su GDrive completato alle {{states('sensor.time')}}
{%- endif %}
target: 47531868
- delay: '00:00:5'
- service: persistent_notification.create
data_template:
message: *check_sync
- delay: '00:00:5'
- service: input_text.set_value
data_template:
entity_id: input_text.gdrive_backup_status
value: *check_sync
- delay: '00:00:5'
- service: input_boolean.turn_off
entity_id: input_boolean.gdrive_sync_completed
#########################################################
# #
# AUTOMAZIONI #
# SNAPSHOT e GOOGLE DRIVE #
#########################################################
automation:
- alias: automazione Hassio gdrive backup
initial_state: 'on'
trigger:
platform: template
value_template: >-
{{ states('sensor.time') == (states.input_datetime.gdrive_backup_time.attributes.timestamp | int | timestamp_custom('%H:%M', False)) }}
condition:
- condition: state
entity_id: input_boolean.gdrive_backup
state: 'on'
- condition: template
value_template: >-
{% set today = ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'][now().weekday()] %}
{% if is_state("input_select.gdrive_backup_day", "Tutti i giorni") %} true
{% elif (is_state("input_select.gdrive_backup_day", "Lun - Ven") and today in ["Monday","Friday"]) %} true
{% elif is_state("input_select.gdrive_backup_day", "Sabato") and today in ["Saturday"] %} true
{% elif is_state("input_select.gdrive_backup_day", "Domenica") and today in ["Sunday"] %} true
{% elif is_state("input_select.gdrive_backup_day", "Lun - Mer - Ven") and today in ["Monday","Wednesday","Friday"] %} true
{% else %} false
{% endif %}
action:
- service: input_text.set_value
data_template:
entity_id: input_text.gdrive_backup_status
value: Avviato Snapshot GDrive alle {{states('sensor.time')}}
- service: hassio.snapshot_full
data_template:
name: Backup automatico GDrive {{ now().strftime('%Y-%m-%d') }}
- delay: '00:00:5'
- service: persistent_notification.create
data:
message: "Creato backup automatico GDrive {{ now().strftime('%Y-%m-%d') }}"
- service: notify.telegram
data:
title: '*Google Drive Backup*'
message: 'Avviato snapshot per GDrive in locale'
# target: !secret allowed_chat_ids
#########################################################
- alias: controllo nuovi file share gdrive backup
initial_state: 'on'
trigger:
platform: event
event_type: folder_watcher
event_data:
event_type: created
action:
- service: input_text.set_value
data_template:
entity_id: input_text.gdrive_backup_status
value: Creato Snapshot GDrive alle {{states('sensor.time')}}
#########################################################
- alias: uploaded backup gdrive
initial_state: 'on'
trigger:
platform: state
entity_id: input_boolean.gdrive_sync_completed
to: 'on'
action:
- service: script.turn_on
entity_id: script.check_gdrive_successful
#########################################################
- alias: upload Google Drive backup
initial_state: 'on'
trigger:
platform: template
value_template: >-
{{ states('sensor.time') == (((states.input_datetime.gdrive_backup_time.attributes.timestamp | int) + (states('input_number.gdrive_ritardo_upload') | int * 60)) | timestamp_custom('%H:%M', False)) }}
condition:
- condition: state
entity_id: input_boolean.gdrive_backup
state: 'on'
- condition: template
value_template: >-
{% set today = ['Monday','Tuesday','Wednesday','Thursday','Friday','Saturday','Sunday'][now().weekday()] %}
{% if is_state("input_select.gdrive_backup_day", "Tutti i giorni") %} true
{% elif (is_state("input_select.gdrive_backup_day", "Lun - Ven") and today in ["Monday","Friday"]) %} true
{% elif is_state("input_select.gdrive_backup_day", "Sabato") and today in ["Saturday"] %} true
{% elif is_state("input_select.gdrive_backup_day", "Domenica") and today in ["Sunday"] %} true
{% elif is_state("input_select.gdrive_backup_day", "Lun - Mer - Ven") and today in ["Monday","Wednesday","Friday"] %} true
{% else %} false
{% endif %}
action:
- service: input_text.set_value
data:
entity_id: input_text.gdrive_backup_status
value: 'Avviato backup su Google Drive'
- service: rest_command.google_backup
- service: persistent_notification.create
data:
message: "Copia backup creata su drive"
I removed this addon and package but I continue to have 57 rows of error