Sorry, I spoke too soon. In my example, the haspbian2 has zwave switches. I want to receive updates and manage switches from haspbian1. I receiving updates to haspbian1, but I cannot manage switches from haspbian1.
The haspbian1 is the new hass.io that I am testing. I enabled Mosquitto Broker in add-ons store. Haspbian2 is not hass.io (I will set it up as hass.io when everything works) On haspbian2 I changed mqtt setup and pointed to haspbian1.
This is my setup, please let me know if you see where the problem is:
Haspbian1:
switch.yaml file:
- platform: mqtt
name: "Entry Light"
state_topic: "homeassistant/switch/entry_light/state"
command_topic: "homeassistant/switch/entry_light/set"
value_template: "{{ value | upper }}"
- platform: mqtt
name: "Garage Light"
state_topic: "homeassistant/switch/garage_light/state"
command_topic: "homeassistant/switch/garage_light/set"
value_template: "{{ value | upper }}"
Haspbian2:
configuration.yaml:
mqtt_statestream:
base_topic: homeassistant
include:
entities:
- switch.entry_light
- switch.garage_light
automations.yaml:
- alias: control_entry_light
trigger:
- platform: mqtt
topic: "homeassistant/switch/entry_light/set"
action:
- service_template: "switch.turn_{{trigger.payload | lower}}"
entity_id: switch.entry_light
- alias: control_garage_light
trigger:
- platform: mqtt
topic: "homeassistant/switch/garage_light/set"
action:
- service_template: "switch.turn_{{trigger.payload | lower}}"
data:
entity_id: switch.garage_light