@Rene-Arts Hi.
Although I am now in the stage just before the laying of cables in Flat1
Yes, I watch it
I’m using now H801 in the kitchen with PIR.
I used MqttSwitch:
{
"topic": "mh/ff/kitchen/dimmer/cmd",
"onMessage": "pwm,15,1023,2000",
"offMessage": "pwm,15,0,2000",
"id": "cabinet-light",
"name": "Cabinet light",
"class": "MqttSwitch"
}
You can also use dummy dimmer:
{
"id": "test-dimmer-with-transition",
"name": "Test-dimmer-with-transition",
"class": "DummyDimmer"
}
{
"id": "test-dimmer-rules",
"name": "Test-dimmer-rules",
"rule": "when $test-dimmer-with-transition.dimlevel changes then publish mqtt message \"pwm,15,$test-dimmer-with-transition.dimlevel,500\" on topic \"mh/gf/lab/dimmer2/cmd\"",
"active": true,
"logging": true
}
Value need to be converted for dimmer resolution. $test-dimmer-with-transition*1023/100 in this example.
ESP Easy newly used status topic for changes.
mh/gf/lab/dimmer2/status {
"log": "GPIO 15 Set PWM to 23",
"plugin": 1,
"pin": 15,
"mode": "PWM",
"state": 23
}
I guess I’ll have to deploy something like msg template for all devices.