Skip to content
This repository has been archived by the owner on Feb 26, 2023. It is now read-only.

MQTT Запоминать состояние реле

Yuriy Afanasiev edited this page Sep 12, 2020 · 2 revisions

Запрос

/save_state

Параметры

Version 1.0

  • save_state 0-off 1-on

Version 2.0

  • status 0-off 1-on

Например

Запрос Version 2.0

Topic /home/room1/switch/sonoff-touch/save_state

Включение Message {"status":"1"}

Выключение Message {"status":"0"}

Ответ

Topic /home/room1/switch/sonoff-touch/save_state/status

Включение Message {"status":"1"}

Выключение Message {"status":"0"}