Hi all, I have searched various threads on this regard and have not found the issue to be the same as mine.
I can see the remote in the states section of the developer tools window however i cannot see any of the switches.
I’m getting the following error when I check configuration.yaml:
"Invalid config for [switch.broadlink]: required key not provided @ data[‘mac’]. Got None. (See ?, line ?).
Invalid config for [switch.broadlink]: [amplifier] is an invalid option for [switch.broadlink]. Check: switch.broadlink->switches->0->amplifier. (See ?, line ?).
"
My configuration.yaml is here:
Configure a default setup of Home Assistant (frontend, api, etc)
default_config:
Text to speech
tts:
- platform: google_translate
cache: true
cache_dir: /tmp/tts
time_memory: 300
base_url: http://x
service_name: google_say
group: !include groups.yaml
automation: !include automations.yaml
script: !include scripts.yaml
scene: !include scenes.yaml
mycroft:
host: x
nissan_leaf:
username: “x”
password: “x”
region: “NE”
notify:
- platform: mycroft
name: picroft
switch:
- platform: broadlink
host: x
mac: ‘x’
switches:
amplifier:
friendly name: “amplifier on/off”
command_onoff: “JgBQAAABJZISEhE4EjcSNxI3FDYTNhITEjYSExMRFBETERITFBETNhMRFDUUERM2ExESOBMRFBETERQREzYTEhM1FBETNhQ1FAAFSwABJ0gTAA0FAAAAAAAA”
spotify:
client_id: x
client_secret: x
downloader:
download_dir: downloads
sensor:
- platform: template
sensors:
washingmachine_amps:
friendly_name_template: “{{ states.switch.washingmachine.name}} Current”
value_template: ‘{{ states.switch.washingmachine.attributes[“current_a”] | float }}’
unit_of_measurement: ‘A’
washingmachine_watts:
friendly_name_template: “{{ states.switch.washingmachine.name}} Current Consumption”
value_template: ‘{{ states.switch.washingmachine.attributes[“current_power_w”] | float }}’
unit_of_measurement: ‘W’
washingmachine_total_kwh:
friendly_name_template: “{{ states.switch.Washingmachine.name}} Total Consumption”
value_template: ‘{{ states.switch.washingmachine.attributes[“total_energy_kwh”] | float }}’
unit_of_measurement: ‘kWh’
washingmachine_volts:
friendly_name_template: “{{ states.switch.Washingmachine.name}} Voltage”
value_template: ‘{{ states.switch.washingmachine.attributes[“voltage”] | float }}’
unit_of_measurement: ‘V’
washingmachine_today_kwh:
friendly_name_template: “{{ states.switch.Washingmachine.name}} Today’s Consumption”
value_template: ‘{{ states.switch.washingmachine.attributes[“today_energy_kwh”] | float }}’
unit_of_measurement: ‘kWh’
Any help would be hugely appreciated!
Cheers,
Ed