---
title: "Homeassistant setup"
date: 2024-02-12
---
## Color fading zigbee bulbs without turning them on
On HA MQTT settings page, send:
```
Topic: zigbee2mqtt/all_colortemp_lights_except_monkeylamp/set
Payload: {"scene_add": {"ID": 0, "name": "house cold scene", "transition": 10, "brightness": 254, "color_temp": 0}}
Topic: zigbee2mqtt/all_colortemp_lights_except_monkeylamp/set
Payload: {"scene_add": {"ID": 1, "name": "house warm scene", "transition": 10, "brightness": 254, "color_temp": 320}}
Topic: zigbee2mqtt/beds/set
Payload: {"scene_add": {"ID": 0, "name": "beds cold scene", "transition": 10, "brightness": 254, "color_temp": 0}}
Topic: zigbee2mqtt/beds/set
Payload: {"scene_add": {"ID": 1, "name": "beds warm scene", "transition": 10, "brightness": 220, "color_temp": 460}}
# Monkey lamp has different color temp limits, give it a separate group so it doesn't limit the other bulbs
Topic: zigbee2mqtt/only_monkeylamp_for_colorchanging/set
Payload: {"scene_add": {"ID": 0, "name": "monkeylamp cold scene", "transition": 10, "brightness": 254, "color_temp": 0}}
Topic: zigbee2mqtt/only_monkeylamp_for_colorchanging/set
Payload: {"scene_add": {"ID": 1, "name": "monkeylamp warm scene", "transition": 10, "brightness": 254, "color_temp": 320}}
```
## Configuring no-neutral wifi switch on tasmota firmware
- Sonoff SA-018 equivalent (
https://www.aliexpress.us/item/3256804183990170.html)
- Flash tasmota onto the module, use its hotspot to configure it onto the IoT wifi network
- Find its IP address via DHCP clients list, open its web config screen, add this config:
- MQTT settings, use router as mqtt host
- Configure via tasmota console:
- Rule1 on switch1#state do publish cmnd/foobar/SWITCH %value% endon
- Rule1 1 # to enable this rule
- SwitchTopic 0 # disable auto broadcast of switch state to topic
- SwitchMode 1 # mode 1 = follow (0 = off, 1 = on)
- PowerOnState 4 # the switch module's power output state will default to "ON" after boot, and the switch input won't affect it
- socat bridge from wifi router to mqtt broker