Hi,
I´m new at HA (coming form iobroker). My sekf created automation arn`t sored. Thats my first problem.
The second: I want to switch a shelly by an mqtt message. I get a “1”, if the shelly switch is on, switch it off, if it´s off, switch it on. Like a toggle.
What exactly are you trying to accomplish?
If you’ve integrated the Shelly via the official integration you can just call the switch.toggle service.
Even if you’ve integrated it manually using the MQTT integration (but why would you do this) you can call switch.toggle.
If that’s all new for you, take a look at the documentation for service calls.
Thanks, @fedot
I get an increasing integer value and a brightness value via MQTT. I want so switch a shelly on when the first value increased at one an the brightness value ist bigger then 30. Then the shelly shoud turn off after 45 seconds.