I have a strange problem I can’t solve, I hope that someone here knows a solution.
I’m using Home assistant on a Raspberry pi.
And a sonoff RF-Bridge flashed with Tasmota.
I have two RF devices assigned to button 1 and button 2
Using the UI of Tasmota pressing the buttons 1 and 2, do what you expect. On/Off when pressing 1 and ON/Off when pressing 2
I also have added code to home assistant to be able to give voice commands by Google Home.
Device 1 does work as expected. When you say ON it turns on, when saying OFF it turns off
The problem I have is with device 2. When I say ON nothing happens (only google home says “I turn kitchen on”), when I say kitchen OFF the light turns on, when I say again Kitchen OFF it turns off !?
Both devices have the exact same code, except the name and button number of course.
“Above commands are given in Dutch, but for the forum I wrote them in English”
Please see below the used code in Home Assistant.
/config/switch.yaml
#CandleLED
- platform: mqtt
unique_id: Kaars
name: 'Candle'
command_topic: "cmnd/RF_Bridge/RfKey1"
#KitchenLED
- platform: mqtt
unique_id: Keuken
name: 'keuken_led'
command_topic: "cmnd/RF_Bridge/RfKey2"
/config/configuration.yaml
####################################################
# Google HOME / Assistant #
####################################################
google_assistant:
project_id: home-assistant-*****
#12032020 uitgezet: api_key: ******************************************
service_account: !include Home Assistant-***************************
report_state: true
expose_by_default: false
exposed_domains:
- script
- light
- switch
entity_config:
switch.candle:
name: Kaars
expose: true
switch.keuken_led:
name: Keuken
expose: true