mirror of
https://github.com/anklimov/lighthub
synced 2026-07-29 01:52:43 +00:00
Compare commits
2 Commits
565195d60a
...
1c839091b6
| Author | SHA1 | Date | |
|---|---|---|---|
| 1c839091b6 | |||
| 7e7abce6b6 |
@@ -18,3 +18,4 @@
|
|||||||
-DOTA_PORT=80
|
-DOTA_PORT=80
|
||||||
-DMERCURY_ENABLE
|
-DMERCURY_ENABLE
|
||||||
-D ROTARYENCODER
|
-D ROTARYENCODER
|
||||||
|
-D SPRINKLER_ENABLE
|
||||||
@@ -60,3 +60,4 @@
|
|||||||
-D REDIRECTION_URL=\"http://lazyhome.ru/pwa\"
|
-D REDIRECTION_URL=\"http://lazyhome.ru/pwa\"
|
||||||
#-DMERCURY_ENABLE
|
#-DMERCURY_ENABLE
|
||||||
-D ROTARYENCODER
|
-D ROTARYENCODER
|
||||||
|
-D SPRINKLER_ENABLE
|
||||||
@@ -75,3 +75,4 @@
|
|||||||
-D REDIRECTION_URL=\"http://lazyhome.ru/pwa\"
|
-D REDIRECTION_URL=\"http://lazyhome.ru/pwa\"
|
||||||
#-DMERCURY_ENABLE
|
#-DMERCURY_ENABLE
|
||||||
-D ROTARYENCODER
|
-D ROTARYENCODER
|
||||||
|
-D SPRINKLER_ENABLE
|
||||||
@@ -18,3 +18,4 @@
|
|||||||
-D REDIRECTION_URL=\"http://lazyhome.ru/pwa\"
|
-D REDIRECTION_URL=\"http://lazyhome.ru/pwa\"
|
||||||
#-DMERCURY_ENABLE
|
#-DMERCURY_ENABLE
|
||||||
-D ROTARYENCODER
|
-D ROTARYENCODER
|
||||||
|
-D SPRINKLER_ENABLE
|
||||||
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
Binary file not shown.
File diff suppressed because it is too large
Load Diff
File diff suppressed because it is too large
Load Diff
Binary file not shown.
File diff suppressed because it is too large
Load Diff
@@ -207,7 +207,7 @@ mqtt:
|
|||||||
payload_not_available: "disconnected"
|
payload_not_available: "disconnected"
|
||||||
|
|
||||||
- name: "Полив водопровод"
|
- name: "Полив водопровод"
|
||||||
state_topic: "edem/s_out/sprinkler/$vIN"
|
state_topic: "edem/s_out/sprinkler/$rVIN"
|
||||||
availability_topic: "edem/air/$state"
|
availability_topic: "edem/air/$state"
|
||||||
payload_available: "ready"
|
payload_available: "ready"
|
||||||
payload_not_available: "disconnected"
|
payload_not_available: "disconnected"
|
||||||
|
|||||||
@@ -204,7 +204,7 @@ root/s_out/sprinkler/$wMin - ON/OFF достигнут минимум воды
|
|||||||
root/s_out/sprinkler/$rDren - ON/OFF включено реле дренажного насоса
|
root/s_out/sprinkler/$rDren - ON/OFF включено реле дренажного насоса
|
||||||
root/s_out/sprinkler/$rPump - ON/OFF включено реле основного насоса
|
root/s_out/sprinkler/$rPump - ON/OFF включено реле основного насоса
|
||||||
root/s_out/sprinkler/set - значение счетчика воды (восстанавливается при перезагрузке из данного топика)
|
root/s_out/sprinkler/set - значение счетчика воды (восстанавливается при перезагрузке из данного топика)
|
||||||
root/s_out/sprinkler/$vIN - ON/OFF - признак открытия клапана налива бака из водопровода
|
root/s_out/sprinkler/$rVIN - ON/OFF - признак открытия клапана налива бака из водопровода
|
||||||
|
|
||||||
root/s_out/sprinkler/garden/set - требуемый обьем (или время) полива зоны
|
root/s_out/sprinkler/garden/set - требуемый обьем (или время) полива зоны
|
||||||
root/s_out/sprinkler/garden/cmd - ON или OFF - признак включения полива зоны
|
root/s_out/sprinkler/garden/cmd - ON или OFF - признак включения полива зоны
|
||||||
@@ -223,7 +223,7 @@ sensor:
|
|||||||
state_topic: "root/s_out/sprinkler/$wMin"
|
state_topic: "root/s_out/sprinkler/$wMin"
|
||||||
|
|
||||||
- name: "Полив водопровод"
|
- name: "Полив водопровод"
|
||||||
state_topic: "root/s_out/sprinkler/$vIN"
|
state_topic: "root/s_out/sprinkler/$rVIN"
|
||||||
|
|
||||||
- name: "Полив дренаж вкл"
|
- name: "Полив дренаж вкл"
|
||||||
state_topic: "root/s_out/sprinkler/$rDren"
|
state_topic: "root/s_out/sprinkler/$rDren"
|
||||||
@@ -325,6 +325,14 @@ button:
|
|||||||
command_topic: "root/air/sprinkler/cmd"
|
command_topic: "root/air/sprinkler/cmd"
|
||||||
payload_press: "DISABLE"
|
payload_press: "DISABLE"
|
||||||
|
|
||||||
|
- name: "Полив осушение бака"
|
||||||
|
command_topic: "root/air/sprinkler/cmd"
|
||||||
|
payload_press: "DRY"
|
||||||
|
#Такую проверку можно добавить везде, при ее наличии обьекты станут недоступными если контроллер оффлайн
|
||||||
|
availability_topic: "root/air/$state"
|
||||||
|
payload_available: "ready"
|
||||||
|
payload_not_available: "disconnected"
|
||||||
|
|
||||||
number:
|
number:
|
||||||
|
|
||||||
- name: "Полив юг"
|
- name: "Полив юг"
|
||||||
|
|||||||
@@ -672,7 +672,7 @@ int out_sprinkler::Poll(short cause)
|
|||||||
else
|
else
|
||||||
{
|
{
|
||||||
uint32_t flowTimer = (uint32_t)getIntFromJson(gatesObj, "@flowTimer", now);
|
uint32_t flowTimer = (uint32_t)getIntFromJson(gatesObj, "@flowTimer", now);
|
||||||
if (isTimeOver(flowTimer, now, 1000UL))
|
if (isTimeOver(flowTimer, now, 1000UL) && setVal > 0)
|
||||||
{
|
{
|
||||||
updateZoneValue(currentZone, 1);
|
updateZoneValue(currentZone, 1);
|
||||||
setValToJson(gatesObj, "@flowTimer", (long)now);
|
setValToJson(gatesObj, "@flowTimer", (long)now);
|
||||||
|
|||||||
Reference in New Issue
Block a user