250 Commits
v2.4.7 ... dev

Author SHA1 Message Date
c75f865589 Merge pull request 'patch_login_autodisable_api' (#108) from patch_login_autodisable_api into dev
Reviewed-on: #108
2024-05-22 19:10:36 +02:00
9412aac176 fix: disable after 5 attemps 2024-05-22 18:46:38 +02:00
ae437a09f2 fix: push 2024-05-22 18:40:04 +02:00
640a7544d7 fix: api und disablle 2024-05-22 18:15:35 +02:00
f38236f721 fix: intervall 180 sek add useragent 2024-05-21 22:45:49 +02:00
517f033ccc fix: api call, login limit, disable 2024-05-21 10:31:30 +02:00
03b2130625 fix: api call,rate limit 2024-05-21 10:29:07 +02:00
90a561be10 Merge pull request 'dev' (#103) from dev into testing
Reviewed-on: #103
2024-04-15 15:58:49 +02:00
69d7681a28 Merge pull request 'patch-merge2' (#105) from patch-merge2 into dev
Reviewed-on: #105
2024-04-15 15:58:25 +02:00
5e60969fc4 fix: merge branch
Merge branch 'patch-merge' into patch-merge2
2024-04-15 15:57:29 +02:00
2d756e4aaa Merge pull request 'testing' (#104) from testing into main
Reviewed-on: #104
2024-04-15 15:48:53 +02:00
80147631d6 Merge pull request 'docs: change copyright year' (#102) from patch-merge into dev
Reviewed-on: #102
2024-04-15 15:46:41 +02:00
8b66df8407 docs: change copyright year
Ticket: no
2024-04-15 15:45:33 +02:00
fc3740fe9b Merge pull request 'fix: version push' (#100) from patch_valve_hhhdg into dev
Reviewed-on: #100
2024-04-15 09:38:54 +02:00
03ad7e3fba fix: version push 2024-04-15 09:38:16 +02:00
dfea4716d3 Merge pull request 'fix: patch code scheduling by hhhdg' (#99) from patch_valve_hhhdg into dev
Reviewed-on: #99
2024-04-15 09:36:13 +02:00
f9661f6452 fix: patch code scheduling by hhhdg 2024-04-15 09:32:51 +02:00
b41e583a9e Merge pull request 'docs: new CHANGELOG' (#98) from patch-tetsing into testing
Reviewed-on: #98
2024-03-28 12:42:10 +01:00
5138e6b3b0 docs: new CHANGELOG 2024-03-28 12:41:42 +01:00
89bc35b1bd Merge pull request 'dev' (#97) from dev into testing
Reviewed-on: #97
2024-03-28 08:16:03 +01:00
03e79bc782 Merge pull request 'patch_mucki_gwoffline' (#96) from patch_mucki_gwoffline into dev
Reviewed-on: #96
2024-03-28 06:06:33 +01:00
74635dfd0a controls_GardenaSmartDevice.txt aktualisiert 2024-03-28 06:05:59 +01:00
443ecd7776 controls_GardenaSmartDevice.txt aktualisiert 2024-03-28 05:59:55 +01:00
bbb4be939c Merge pull request 'patch_newstart_command' (#94) from patch_newstart_command into dev
Reviewed-on: #94
2024-03-27 20:03:15 +01:00
72daa71daf fix: put to post 2024-03-18 10:15:25 +01:00
68f66c8430 test: new api start cmd 2024-03-17 20:58:13 +01:00
579f632990 test: catch null value 2024-02-23 22:52:25 +01:00
790d5206b6 fix: fix 2024-02-21 22:00:02 +01:00
2c94924e97 fix: push version 2024-02-21 21:58:05 +01:00
918f4dc6a3 test: fix error spam 2024-02-21 21:56:14 +01:00
f14d34c1b4 Merge pull request 'dev' (#92) from dev into main
Reviewed-on: #92
2023-11-28 08:54:39 +01:00
274cb067cf Merge pull request 'patch-fix_div_with_attributes' (#91) from patch-fix_div_with_attributes into dev
Reviewed-on: #91
2023-11-28 08:54:09 +01:00
897a3c7aef fix: closes #90 2023-11-28 08:52:33 +01:00
232f82eafe Merge pull request 'testing' (#89) from testing into main
Reviewed-on: #89
2023-11-28 08:34:50 +01:00
9c49aa49b9 Merge pull request 'dev' (#88) from dev into testing
Reviewed-on: #88
2023-11-28 08:34:14 +01:00
24db680413 Merge pull request 'patch_mucki' (#87) from patch_mucki into dev
Reviewed-on: #87
Reviewed-by: Marko Oldenburg <marko@noreply@cooltux.net>
2023-11-20 20:43:36 +01:00
df1830a670 fix: missing tree 2023-11-12 19:47:49 +01:00
de58578a2d test: smartdevice variable wintermode initializied
Bridge consolidiert wifi/ethernet
2023-11-05 21:52:24 +01:00
e15a70ff0b test: fix initial variables 2023-11-01 21:04:39 +01:00
98b093bcba test: debug line 2023-10-28 18:02:17 +02:00
82907c73a3 test: cleanup initial error handling 2023-10-25 22:16:26 +02:00
13de67f570 test: fix wifi status if is_connected 2023-10-23 22:04:31 +02:00
7385959b38 test: changed published gateway informations 2023-10-21 20:21:31 +02:00
7dfa0b2dda test: gateway readings changed by gardena 2023-10-12 21:52:51 +02:00
abb325b448 test: versions pump 2023-10-03 22:40:58 +02:00
d7d5e4f843 Merge pull request 'dev' (#86) from dev into testing
Reviewed-on: #86
2023-03-15 18:17:18 +01:00
c0dec3d3fb Merge pull request 'patch_setExtention' (#85) from patch_setExtention into dev
Reviewed-on: #85
2023-03-15 18:15:48 +01:00
3e540471d5 feat: changelog 2023-03-02 11:58:58 +01:00
608719ba2f feat: add setextention 2023-03-02 11:58:29 +01:00
472fe88ac0 feat: test 2023-03-02 11:30:19 +01:00
682dea8bd1 Merge pull request 'testing' (#83) from testing into main
Reviewed-on: #83
2023-01-10 10:01:11 +01:00
fb3a690993 Merge pull request 'dev' (#82) from dev into testing
Reviewed-on: #82
2023-01-10 10:00:38 +01:00
2cae1812d8 Merge pull request 'patch-changeVersion' (#81) from patch-changeVersion into dev
Reviewed-on: #81
2023-01-10 10:00:15 +01:00
2111939863 docs: add changelog file 2023-01-10 09:51:23 +01:00
c9a3cc9e1d docs: change verson numbers
change modul versions
2023-01-10 09:50:36 +01:00
b399fcd524 test: add hooks
hooks for commit test and create changelog
2023-01-10 09:48:39 +01:00
89bbb4bb10 Merge branch 'main' of git.cooltux.net:/FHEM/mod-GardenaSmart 2023-01-10 09:29:11 +01:00
801a1a468f Merge pull request 'testing' (#80) from testing into main
Reviewed-on: #80
2022-12-22 08:04:47 +01:00
eddcb708ba Merge pull request 'dev' (#79) from dev into testing
Reviewed-on: #79
Reviewed-by: Marko Oldenburg <marko@noreply@cooltux.net>
2022-11-14 20:34:36 +01:00
c7073b24b4 Merge pull request 'patch-fix_commandref_spell' (#78) from patch-fix_commandref_spell into dev
Reviewed-on: #78
Reviewed-by: Marko Oldenburg <marko@noreply@cooltux.net>
2022-10-14 09:01:55 +02:00
fe97f0b203 [translaten] - add commandref translation 2022-09-18 08:52:43 +02:00
eebe13bb7b spellcheck + corrections 2022-09-06 14:34:38 +02:00
a6174d9982 Merge pull request 'dev' (#77) from dev into testing
Reviewed-on: #77
Reviewed-by: Marko Oldenburg <marko@noreply@cooltux.net>
2022-09-06 14:26:24 +02:00
aea73bb010 Merge pull request 'patch-wc_rest_valve_and_additinal_commandref' (#76) from patch-wc_rest_valve_and_additinal_commandref into dev
Reviewed-on: #76
Reviewed-by: Marko Oldenburg <marko@noreply@cooltux.net>
2022-09-06 13:32:06 +02:00
4cb9f2e50b Merge pull request 'dev' (#74) from dev into testing
Reviewed-on: #74
Reviewed-by: Marko Oldenburg <marko@noreply@cooltux.net>
2022-09-06 13:31:53 +02:00
b61c32a850 [enhancement] - commandref 2022-09-06 12:32:40 +02:00
8c49aaa079 [enhancement] - commandref 2022-08-30 16:23:00 +02:00
1f54fc7601 [test] commandref 2022-08-28 20:11:11 +02:00
3dd4796e14 [try] - to setup cmdref to set webui 2022-08-23 15:04:06 +02:00
7b188e3e41 [add] - wc reset valve, commandref 2022-08-23 11:24:21 +02:00
c2863d9998 Merge pull request 'patch-offline_status_startup_undefined' (#73) from patch-offline_status_startup_undefined into dev
Reviewed-on: #73
Reviewed-by: Marko Oldenburg <marko@noreply@cooltux.net>
2022-08-11 20:07:01 +02:00
76a7eeb4e5 [fix] - upper/lower case 2022-08-11 14:25:19 +02:00
388ae1635e [enhancement] - add resetvalveerrors ic24 2022-08-11 12:40:13 +02:00
d660366aea [final 2] - removed debug dumper code 2022-08-09 15:03:38 +02:00
8b9ce793cd [final] - removed debug print lines, cleanup code 2022-08-09 14:52:34 +02:00
71b435d90b [fix] - schedules + debug 2022-08-09 10:34:04 +02:00
c86cae74e6 [fix] - debug output 2022-08-09 10:13:57 +02:00
8ce2980356 [fix] - corret debug output 2022-08-09 10:04:43 +02:00
0d29721111 [fix] - commandref 2022-08-08 21:03:29 +02:00
ade45510ac [fix] - checkmethode delete reading if ist = soll 2022-08-08 20:59:57 +02:00
8a32c9f215 [fix] - removed "valveid" from reading 2022-08-08 20:47:19 +02:00
78b5731bbf [fix] - cast all propertie as string - fixed bulkupdateifchanged 2022-08-07 20:20:17 +02:00
0ee95be7be [fix] - delete unused schedules 2022-08-06 20:20:04 +02:00
bae27c39c1 [enhancement] - delete unused scheuldes from readings 2022-08-06 13:13:43 +02:00
47804c996b [enhancement] - commandref 2022-08-04 15:47:10 +02:00
6a7083f6ea [fix] - translation 2022-08-04 14:54:44 +02:00
ada7e2875c [fix] - fix 2022-08-04 14:44:35 +02:00
658f40e979 [enhancemend] - commandref 2022-08-04 14:39:44 +02:00
1c7097e476 [fix] - schedules_event incrementation 2022-08-04 10:34:48 +02:00
e363b45862 [fix] - eventhandler ic24 2022-08-04 10:31:11 +02:00
11c5e6650d [fix] - update event handled 2022-08-02 14:58:59 +02:00
4b998d19ab [fix] - show schedules_events_count fot non sensor devices
[fix] - remove _valve_ in non valve devices fpr schedules
2022-08-02 14:52:52 +02:00
7f6c7bc265 [log] - removed valve_names log line 2022-07-30 20:31:59 +02:00
e108afda5a add translation 2022-07-29 12:49:27 +02:00
a13c42f08c [add] - translations/commandref 2022-07-27 22:31:53 +02:00
df33172650 [add] - translation pumpe filter 2022-07-24 20:29:15 +02:00
f3d153726b [fix] - uninitialized 727 2022-07-24 20:25:21 +02:00
33a10d3756 [fix] - exists gegen defined 2022-07-22 21:08:02 +02:00
abcccefeb4 cleanup 2022-07-20 12:15:53 +02:00
f61e9d327b cleanup code, fix start up defined string 2022-07-19 20:20:20 +02:00
42afa2133e Merge pull request 'readd lost setter webinterface' (#72) from patch-dev_merge_failed_electronic_pressure_pump into dev
Reviewed-on: #72
Reviewed-by: Marko Oldenburg <marko@noreply@cooltux.net>
2022-07-13 21:18:55 +02:00
6aba15caca readd lost setter webinterface 2022-07-13 20:56:47 +02:00
1abf586f71 change version number
[Ticket: no]
2022-07-13 07:58:43 +02:00
f02da0c428 Merge branch 'dev' of git.cooltux.net:/FHEM/mod-GardenaSmart into dev 2022-07-13 07:21:20 +02:00
ebb342d83f Merge branch 'dev' of git.cooltux.net:/FHEM/mod-GardenaSmart 2022-07-13 07:20:49 +02:00
fd4ac49f59 Merge pull request '„FHEM/74_GardenaSmartDevice.pm“ ändern' (#71) from patch_electronic_pressure_pump_water_pump_name_mistake into dev
Reviewed-on: #71
Reviewed-by: Marko Oldenburg <marko@noreply@cooltux.net>
2022-07-12 20:16:02 +02:00
73d7c50db0 „FHEM/74_GardenaSmartDevice.pm“ ändern 2022-07-12 20:09:33 +02:00
f5ec4f699a Merge pull request 'patch_ic24' (#69) from patch_ic24 into dev
Reviewed-on: #69
Reviewed-by: Marko Oldenburg <marko@noreply@cooltux.net>
2022-07-12 19:35:25 +02:00
f2400a3949 Merge remote-tracking branch 'origin/dev' into patch_ic24 2022-07-12 19:25:35 +02:00
63443d75b4 [add] - cancleValve for conencted valvs only 2022-07-11 20:22:27 +02:00
5e87026852 [enhancement] - change stopSchedule and resumeSchedule setter to connected valves 2022-07-11 20:03:12 +02:00
c6ee46489b [fix] state , initial nearst fallback, paused untel readded - paused_until is UTC no bug -> calc for state in localtim 2022-07-10 20:16:07 +02:00
97540ef9c4 [fix] Garbage at end of string in strptime 2022-07-08 15:38:30 +02:00
0c75c89cf0 [enhancement] - scheudiles handling wc,ic24,pump, next schedule, permanenlty cloesd 2022-07-08 15:23:36 +02:00
93d0ef26c7 [fix] - schedules events 2022-07-08 15:11:18 +02:00
9b49c75317 [fix] scheduled count 2022-07-08 12:58:49 +02:00
5e10125a09 [fix] - readings schedules_event 2022-07-08 12:51:51 +02:00
9e389681f0 [fix] - scheduled 2022-07-08 12:48:51 +02:00
5b8bd75c55 [fix] - ifcondition schedules events 2022-07-08 12:47:49 +02:00
f77f49b7f1 fix 2022-07-08 12:46:20 +02:00
43d9356d8c fix 2022-07-08 12:43:14 +02:00
41c226536f fix 2022-07-08 12:42:32 +02:00
ec88be0b06 [enhancment] - schedules 2022-07-08 12:39:38 +02:00
8ce72c5ddc [NEW] - implementation schedules infos 2022-07-08 12:29:27 +02:00
9643a9074f [fix] - condition has_schedule 2022-07-07 20:05:16 +02:00
6f1eebcf48 [fix] - change condition has_schedule 2022-07-07 20:03:57 +02:00
c084fabc92 [fix] - try 2 fix nearst irrigateion > 1 year 2022-07-07 13:22:38 +02:00
188f5d3838 Merge pull request 'testing' (#67) from testing into main
Reviewed-on: #67
2022-07-01 10:41:17 +02:00
9d70fa238a Merge pull request 'dev' (#66) from dev into testing
Reviewed-on: #66
2022-07-01 10:29:53 +02:00
740effe531 Merge branch 'testing' into dev 2022-07-01 10:28:44 +02:00
426fb7c06a Merge branch 'main' into dev 2022-07-01 10:23:47 +02:00
782ad5f0a9 [fix] - tip fehler 2022-06-30 20:11:32 +02:00
41ef5cd10a Merge pull request '[fix] - setter procedure' (#64) from patch_pressure_pump_setlist into dev
Reviewed-on: #64
Reviewed-by: Marko Oldenburg <marko@noreply@cooltux.net>
2022-06-30 13:47:49 +02:00
6d684ade92 [fix] time piece 2022-06-30 13:09:32 +02:00
bc4b6eecf5 [fix] - timer paused >1 jahr 2022-06-30 11:37:01 +02:00
e8c2bd5183 [fix] - setter procedure 2022-06-29 20:32:00 +02:00
967ec86ea1 [fix] - state ohne plan , nicht listen 2022-06-29 13:38:08 +02:00
0086f52d74 [alpha] extendedState - fix empty reading + state ic24/wc 2022-06-29 12:26:39 +02:00
54b378d094 [visual] - lowercase not available 2022-06-29 09:00:03 +02:00
200751b72b [fix] - rollback 2022-06-28 23:09:33 +02:00
7cefd1c7e3 d 2022-06-28 23:08:35 +02:00
ee0c7fa4ba [test] set empty 2022-06-28 23:07:34 +02:00
ae3bf5f68a [fix] - readings 2022-06-28 23:03:42 +02:00
929bd705d5 [fix] - debug stuff - cleanup 2022-06-28 13:11:28 +02:00
9b1170a978 [fix] - debug stuff 2022-06-28 13:10:10 +02:00
2a5872002f [fix] - debug stuff 2022-06-28 13:08:47 +02:00
1b7670f8c5 [fix] - fixup debug code stuff 2022-06-28 13:06:32 +02:00
768a5a6d7a Merge pull request 'patch_lona' (#61) from patch_lona into dev
Reviewed-on: #61
Reviewed-by: Marko Oldenburg <marko@noreply@cooltux.net>
2022-06-26 19:28:11 +02:00
2eefd813df [fix] - cleanup 2022-06-26 19:24:38 +02:00
197dba15f1 fix - clear next_start 2022-06-26 19:22:06 +02:00
8dd9771033 [fix] - watering_next_start 2022-06-25 16:17:28 +02:00
a4a75ab016 patch lono. eventuell recrusive readings einbauen. waterpump rechtschreibfehler mit fixed 2022-06-25 12:58:59 +02:00
2cbe907db4 [alpha] - extendedstate: state fix if empty or not exists 2022-06-24 18:40:46 +02:00
af3dee00a2 [fix] - ix state 2022-06-24 13:57:07 +02:00
c9b1e470cb [ALPHA] extendetState - permanentyl paused 2022-06-24 13:20:54 +02:00
458edffa85 [alpha] extendetState : fix irrigation left zero value 2022-06-23 13:33:27 +02:00
930e42835b [alpha] excentedState - fix wc state, add irrigation duration 2022-06-23 12:55:03 +02:00
d3020ded2c [alpha] - extendetState - irrigation stuff 2022-06-23 12:45:31 +02:00
97f55e6122 debugg 2022-06-23 12:41:18 +02:00
9f9722ce9c fix 2022-06-23 12:36:17 +02:00
6ce4b352b4 fix 2022-06-23 12:15:10 +02:00
b3d39a6e58 debug stuff 2022-06-23 12:14:29 +02:00
3780befa7a dry run 2022-06-23 12:11:00 +02:00
c68f35c2e3 [alpha] - extendetState. fix state 2022-06-23 12:08:26 +02:00
830e5426d6 [alpha] extemdedState - fix state 2022-06-23 11:45:59 +02:00
bbf9919ad3 [alpa] extendetState: fix irrigatiopn time stuff 2022-06-23 11:37:04 +02:00
ab2e990ffb [alpha] - extendedState - fix next irrigation and irregation left time 2022-06-23 11:31:22 +02:00
df99f04e6e scheduling if event != '' 2022-06-16 20:15:29 +02:00
91ff06ea79 [extendetState] - fix up schedule 2022-06-16 16:04:05 +02:00
0c3db5e445 - 2022-06-14 10:22:14 +02:00
9ffde3bd2c [alpha] - ExtendetState: debugzeilen added 2022-06-14 10:18:16 +02:00
3326b134a8 [alpha] - extendedState 2022-06-13 21:01:39 +02:00
f8b4df8f4f blank 2022-06-13 20:46:41 +02:00
5bf618a9d2 [alpha] - extendetState | legacy: will be irrigeated by longest_duration, has scheduling check 2022-06-13 20:44:02 +02:00
9a85c9c20d [alpha] - extendetSate ic24 2022-06-12 20:08:11 +02:00
86b679ba97 [alpha] - extendetState, legacy enabled 2022-06-12 11:13:57 +02:00
a4865cae47 [alpha] - extendetState 2022-06-11 15:35:29 +02:00
b6a179a0ea [alpha] - extendedState 2022-06-11 15:24:44 +02:00
4666020263 [alpha] - extendedState 2022-06-11 15:23:15 +02:00
576569ea2d fixing symikolon 2022-06-11 14:12:02 +02:00
ae4e1b9990 fix 2022-06-11 14:09:42 +02:00
c07f757c4a [alpha] - implementation extend state with one more thing... 2022-06-11 14:07:16 +02:00
6faccfe564 fix boolean 2022-06-10 20:27:09 +02:00
9505316291 cleanup code 2022-06-10 20:24:42 +02:00
c76fd125ec first step state 2022-06-10 20:21:29 +02:00
3b28a20b33 add ventil check 2022-05-31 19:47:49 +02:00
8002d2a1d3 add state 2022-05-31 15:40:18 +02:00
6b475415cc copy & past error 2022-05-27 20:04:39 +02:00
40074a3db6 add lona readings 2022-05-27 11:44:59 +02:00
234607cb8d Merge pull request 'patch_waterpump' (#58) from patch_waterpump into dev
Reviewed-on: #58
2022-05-26 11:56:03 +02:00
9ad11bff63 lona 2022-05-17 20:53:37 +02:00
0849705c62 fix lona 2022-05-17 20:52:52 +02:00
6490c2f1be debug stuff 2022-05-17 20:13:45 +02:00
d863cbeff0 fix IODEV 2022-05-17 11:05:59 +02:00
d04ea31ef0 revert back 2022-05-17 10:36:02 +02:00
33fddad023 try 3 2022-05-17 10:24:47 +02:00
b620f87eb1 try 2 2022-05-17 10:19:15 +02:00
97b4147072 test 2022-05-17 10:04:33 +02:00
bd3d354786 test 2022-05-17 08:25:44 +02:00
b230baa776 fixing 2022-05-17 08:23:47 +02:00
4e6ca5f8ed test 2022-05-17 07:57:58 +02:00
d6e6847955 strgin format error 2022-05-14 23:02:12 +02:00
c551f4855f state format 2022-05-14 22:59:41 +02:00
15c791e1bf fix state 2022-05-08 12:41:04 +02:00
af2f803be5 add resetcall + state 2022-05-08 12:39:10 +02:00
91fd570896 long state 2022-05-07 20:29:16 +02:00
0e876c319c fux payload 2022-05-07 19:04:29 +02:00
122983580f fix payload 2022-05-07 18:08:47 +02:00
948f68515c change debug 2022-05-07 17:58:48 +02:00
528e8d5a08 vers push 2022-05-07 13:08:26 +02:00
b7adf6af6d add readingss and fix payload 2022-05-07 12:58:03 +02:00
a8646efe0d more debug 2022-05-06 18:58:45 +02:00
480946f9be Log Debug 2022-05-06 12:19:15 +02:00
c3620aa017 add log 2022-05-06 12:10:46 +02:00
43bf81053b operatingmode, leakagedetection and turnonpressure fix - ins blaue gerate 2022-05-05 12:27:21 +02:00
b4f5cef061 debug ausgabe 2022-05-05 09:20:56 +02:00
58333bef34 add setter 2022-05-03 22:23:00 +02:00
0beab4ec1d erste teste 2022-05-03 22:18:54 +02:00
4860b7e0ee fix log line 2022-05-03 21:37:41 +02:00
bf6734f44b initial 2022-05-01 20:54:44 +02:00
a1fad78c3b change debug stuff 2022-05-01 09:37:52 +02:00
bfbf2cced4 add second debug line for state 2022-04-28 20:21:44 +02:00
78e9906e6b fix debug 2022-04-28 20:17:22 +02:00
8d03f20b57 fix 2022-04-18 19:16:20 +02:00
83b9a4347c fix code 2022-04-18 19:08:28 +02:00
b197fbd082 simple quick code 2022-04-18 19:01:33 +02:00
29869e9b08 simple quick try 2022-04-18 18:52:58 +02:00
d61e06e0e9 debug lines 2022-04-17 15:44:05 +02:00
6b87b19f0d add valve_name and paused_untel for schedule 2022-04-14 16:42:18 +02:00
c87d8e9302 Merge pull request 'main' (#55) from main into testing
Reviewed-on: #55
2022-04-12 19:23:55 +02:00
8afc912ed5 Merge pull request 'dev' (#54) from dev into main
Reviewed-on: #54
2022-04-12 13:37:37 +02:00
b06c9acda3 Merge pull request 'patch_water_control' (#53) from patch_water_control into dev
Reviewed-on: #53
2022-04-12 13:35:44 +02:00
a56dfe6a2d round minutes in irregation 2022-04-12 08:40:40 +02:00
17b4182abe cleanup code 2022-04-10 13:07:59 +02:00
9f19ed8817 fix locales, todo change view of remaining time 2022-04-07 19:49:40 +02:00
cea5741fb8 fix open + paused 2022-04-07 14:49:23 +02:00
5661ef3e59 fix locales 2022-04-07 14:31:00 +02:00
40c7318992 some locales 2022-04-07 12:38:11 +02:00
9bdeb2ac19 add awake translation 2022-04-07 12:23:53 +02:00
e64f8fd0a4 fix 2022-04-07 12:10:15 +02:00
a193c6f814 tz offset in state 2022-04-07 11:44:19 +02:00
d1b04b6a74 cleanup 2022-04-07 11:30:51 +02:00
7113e9974e stateformat 2022-04-07 11:10:02 +02:00
7c074adbb9 fix 2022-04-05 11:42:07 +02:00
462311836f fix state_string variable 2022-04-05 11:40:24 +02:00
c553b8ef8f wc state 2022-04-05 11:36:29 +02:00
1d75b5cc77 fix state 2022-04-05 09:23:34 +02:00
f2c840bedc fix regex 2022-04-05 09:17:27 +02:00
b6c5f42acc add sensor2 2022-04-05 08:18:06 +02:00
65cbeba975 fix ic24 2022-03-29 16:35:58 +02:00
7 changed files with 5960 additions and 400 deletions

1
CHANGED Normal file
View File

@ -0,0 +1 @@
spellcheck + corrections

4243
CHANGELOG.md Normal file

File diff suppressed because it is too large Load Diff

View File

@ -2,7 +2,7 @@
#
# Developed with VSCodium and richterger perl plugin.
#
# (c) 2017-2022 Copyright: Marko Oldenburg (fhemdevelopment at cooltux dot net)
# (c) 2017-2024 Copyright: Marko Oldenburg (fhemdevelopment at cooltux dot net)
# All rights reserved
#
# Special thanks goes to comitters:
@ -166,7 +166,7 @@ BEGIN {
GP_Export(
qw(
Initialize
)
)
);
sub Initialize {
@ -205,6 +205,7 @@ sub Define {
my $hash = shift // return;
my $aArg = shift // return;
return $@ unless ( FHEM::Meta::SetInternals($hash) );
use version 0.60; our $VERSION = FHEM::Meta::Get( $hash, 'version' );
@ -221,8 +222,9 @@ sub Define {
$hash->{URL} =
AttrVal( $name, 'gardenaBaseURL', 'https://smart.gardena.com' ) . '/v1';
$hash->{VERSION} = version->parse($VERSION)->normal;
$hash->{INTERVAL} = 60;
$hash->{INTERVAL} = 180;
$hash->{NOTIFYDEV} = "global,$name";
$hash->{helper}{gettoken_count} = 0;
CommandAttr( undef, $name . ' room GardenaSmart' )
if ( AttrVal( $name, 'room', 'none' ) eq 'none' );
@ -264,6 +266,8 @@ sub Attr {
if ( $cmd eq 'set' && $attrVal eq '1' ) {
RemoveInternalTimer( $hash,
"FHEM::GardenaSmartBridge::getDevices" );
RemoveInternalTimer( $hash,
"FHEM::GardenaSmartBridge::getToken" );
readingsSingleUpdate( $hash, 'state', 'inactive', 1 );
Log3 $name, 3, "GardenaSmartBridge ($name) - disabled";
}
@ -290,14 +294,14 @@ sub Attr {
if ( $attrVal == 0 );
RemoveInternalTimer( $hash,
"FHEM::GardenaSmartBridge::getDevices" );
$hash->{INTERVAL} = $attrVal;
$hash->{INTERVAL} = $attrVal if $attrVal >= 180;
Log3 $name, 3,
"GardenaSmartBridge ($name) - set interval: $attrVal";
}
elsif ( $cmd eq 'del' ) {
RemoveInternalTimer( $hash,
"FHEM::GardenaSmartBridge::getDevices" );
$hash->{INTERVAL} = 60;
$hash->{INTERVAL} = 180;
Log3 $name, 3,
"GardenaSmartBridge ($name) - delete User interval and set default: 60";
}
@ -414,7 +418,6 @@ sub Set {
if ( lc $cmd eq 'getdevicesstate' ) {
getDevices($hash);
}
elsif ( lc $cmd eq 'gettoken' ) {
return "please set Attribut gardenaAccountEmail first"
@ -438,6 +441,15 @@ sub Set {
DeletePassword($hash);
}
elsif ( lc $cmd eq 'debughelper' ) {
return "usage: $cmd" if ( scalar( @{$aArg} ) != 2 );
my $new_helper = $aArg->[0];
my $new_helper_value = $aArg->[1];
Log3( $name, 5,
"[DEBUG] - GardenaSmartBridge ($name) - override helper $new_helper with $new_helper_value"
);
$hash->{helper}{$new_helper} = $new_helper_value;
}
else {
my $list = "getDevicesState:noArg getToken:noArg"
@ -482,8 +494,8 @@ sub Write {
"GardenaSmartBridge ($name) - Send with URL: $hash->{URL}$uri, HEADER: secret!, DATA: secret!, METHOD: $method"
);
# Log3($name, 3,
# "GardenaSmartBridge ($name) - Send with URL: $hash->{URL}$uri, HEADER: $header, DATA: $payload, METHOD: $method");
# Log3($name, 3,
# "GardenaSmartBridge ($name) - Send with URL: $hash->{URL}$uri, HEADER: $header, DATA: $payload, METHOD: $method");
return;
}
@ -520,7 +532,6 @@ sub ErrorHandling {
1 );
if ( $err =~ /timed out/ ) {
Log3 $dname, 5,
"GardenaSmartBridge ($dname) - RequestERROR: connect to gardena cloud is timed out. check network";
}
@ -606,7 +617,7 @@ sub ErrorHandling {
}
if (
$data =~ /Error/
$data =~ /Error/ && $data !~ /lastLonaErrorCode/
|| ( defined($decode_json)
&& ref($decode_json) eq 'HASH'
&& defined( $decode_json->{errors} ) )
@ -621,26 +632,33 @@ sub ErrorHandling {
if ( $param->{code} == 400 ) {
if ($decode_json) {
if ( ref( $decode_json->{errors} ) eq "ARRAY"
&& defined( $decode_json->{errors} ) )
&& exists( $decode_json->{errors} ) )
# replace defined with exists
# && defined( $decode_json->{errors} ) )
{
readingsBulkUpdate(
$dhash,
"state",
$decode_json->{errors}[0]{error} . ' '
. $decode_json->{errors}[0]{attribute},
1
);
readingsBulkUpdate(
$dhash,
"lastRequestState",
$decode_json->{errors}[0]{error} . ' '
. $decode_json->{errors}[0]{attribute},
1
);
Log3 $dname, 5,
"GardenaSmartBridge ($dname) - RequestERROR: "
. $decode_json->{errors}[0]{error} . " "
. $decode_json->{errors}[0]{attribute};
# $decode_json->{errors} -> ARRAY
# $decode_json->{errors}[0] -> HASH
if ( exists( $decode_json->{errors}[0]{error} ) ) {
readingsBulkUpdate(
$dhash,
"state",
$decode_json->{errors}[0]{error} . ' '
. $decode_json->{errors}[0]{attribute},
1
);
readingsBulkUpdate(
$dhash,
"lastRequestState",
$decode_json->{errors}[0]{error} . ' '
. $decode_json->{errors}[0]{attribute},
1
);
Log3 $dname, 5,
"GardenaSmartBridge ($dname) - RequestERROR: "
. $decode_json->{errors}[0]{error} . " "
. $decode_json->{errors}[0]{attribute};
} # fi exists error
}
}
else {
@ -677,6 +695,16 @@ sub ErrorHandling {
"GardenaSmartBridge ($dname) - RequestERROR: check the ???";
}
elsif ( $decode_json->{errors}[0]{code} eq "ratelimit.exceeded" ) {
Log3 $name, 5,
"GardenaSmartBridge ($name) - RequestERROR: error ratelimit.exceeded";
readingsBulkUpdate( $hash, "lastRequestState", "too many requests", 1 );
readingsBulkUpdate( $hash, "state", "inactive", 1 );
# remove all timer and disable bridge
RemoveInternalTimer( $hash );
return; # post request max.
}
else {
Log3 $dname, 5,
@ -686,8 +714,18 @@ sub ErrorHandling {
if ( !defined( $hash->{helper}{session_id} ) ) {
readingsSingleUpdate( $hash, 'token', 'none', 1 );
InternalTimer( gettimeofday() + 5,
"FHEM::GardenaSmartBridge::getToken", $hash );
Log3 $name, 3,
"GardenaSmartBridge ($name) - getToken limit: "
. $hash->{helper}{gettoken_count} ;
if ($hash->{helper}{gettoken_count} < 6) {
$hash->{helper}{gettoken_count}++;
InternalTimer( gettimeofday() + 5,
"FHEM::GardenaSmartBridge::getToken", $hash )
} else {
RemoveInternalTimer ($hash);
$hash->{helper}{gettoken_count} = 0;
}
}
readingsEndUpdate( $dhash, 1 );
@ -731,7 +769,7 @@ sub ErrorHandling {
my $i = 0;
for my $dev_settings ( @{ $devJson->{settings} } ) {
$output .= "[" . $i++ . "]id: $dev_settings->{id} \n";
$output .= "name: $dev_settings->{name} ";
$output .= "name: $dev_settings->{name} \n";
if ( ref( $dev_settings->{value} ) eq 'ARRAY'
|| ref( $dev_settings->{value} ) eq 'HASH' )
{
@ -747,16 +785,7 @@ sub ErrorHandling {
for my $dev_settings ( @{ $devJson->{abilities} } ) {
$output .= "[" . $i++ . "]id: $dev_settings->{id} \n";
$output .= "name: $dev_settings->{name} ";
if ( ref( $dev_settings->{value} ) eq 'ARRAY'
|| ref( $dev_settings->{value} ) eq 'HASH' )
{
$output .= 'N/A \n';
}
else {
$output .= "value: $dev_settings->{value} \n";
}
$output .= "name: $dev_settings->{name} \n";
}
$hash->{helper}{debug_device_output} = $output;
@ -1055,6 +1084,20 @@ sub WriteReadings {
if ( ref($v) eq 'ARRAY' );
#$v = encode_utf8($v);
$v = ' ' if ( !defined $v );
Log3 $name, 4,
"Gardena DEBUG DEBUG DEBUG stage 1 "
. $decode_json->{abilities}[0]{properties}[$properties]
{name}
if ( $decode_json->{abilities}[0]{properties}[$properties]
{name} !~ /ethernet_status|wifi_status/ );
Log3 $name, 4, "Gardena DEBUG DEBUG DEBUG stage 2" . $t
if ( $decode_json->{abilities}[0]{properties}[$properties]
{name} !~ /ethernet_status|wifi_status/ );
Log3 $name, 4, "Gardena DEBUG DEBUG DEBUG stage 3" . $v
if ( $decode_json->{abilities}[0]{properties}[$properties]
{name} !~ /ethernet_status|wifi_status/ );
readingsBulkUpdateIfChanged(
$hash,
$decode_json->{abilities}[0]{properties}[$properties]
@ -1073,35 +1116,21 @@ sub WriteReadings {
&& ref($v) eq 'HASH'
)
{
if ( $decode_json->{abilities}[0]{properties}
[$properties]{name} eq 'ethernet_status' )
{
readingsBulkUpdateIfChanged( $hash,
'ethernet_status-mac', $v->{mac} );
readingsBulkUpdateIfChanged( $hash,
'ethernet_status-ip', $v->{ip} )
if ( ref( $v->{ip} ) ne 'HASH' );
readingsBulkUpdateIfChanged( $hash,
'ethernet_status-isconnected',
$v->{isConnected} );
if ( $v->{is_connected} ) {
readingsBulkUpdateIfChanged(
$hash,
$decode_json->{abilities}[0]{properties}
[$properties]{name} . '-ip',
$v->{ip}
) if ( ref( $v->{ip} ) ne 'HASH' );
readingsBulkUpdateIfChanged(
$hash,
$decode_json->{abilities}[0]{properties}
[$properties]{name} . '-isconnected',
$v->{is_connected}
) if ( $v->{is_connected} );
}
elsif ( $decode_json->{abilities}[0]{properties}
[$properties]{name} eq 'wifi_status' )
{
readingsBulkUpdateIfChanged( $hash,
'wifi_status-ssid', $v->{ssid} )
if ( ref( $v->{ssid} ) ne 'HASH' );
readingsBulkUpdateIfChanged( $hash,
'wifi_status-mac', $v->{mac} );
readingsBulkUpdateIfChanged( $hash,
'wifi_status-ip', $v->{ip} )
if ( ref( $v->{ip} ) ne 'HASH' );
readingsBulkUpdateIfChanged( $hash,
'wifi_status-isconnected', $v->{isConnected} );
readingsBulkUpdateIfChanged( $hash,
'wifi_status-signal', $v->{signal} );
}
}
} # fi ethernet and wifi
}
$properties--;
@ -1171,21 +1200,21 @@ sub getToken {
Write(
$hash,
'"data": {"type":"token", "attributes":{"username": "'
'"data":{"type":"token","attributes":{"username":"'
. AttrVal( $name, 'gardenaAccountEmail', 'none' )
. '","password": "'
. '","password":"'
. ReadPassword( $hash, $name )
. '", "client_id":"smartgarden-jwt-client"}}',
. '","client_id":"smartgarden-jwt-client"}}',
undef,
undef
);
Log3 $name, 4,
'"data": {"type":"token", "attributes":{"username": "'
'"data": {"type":"token", "attributes":{"username":"'
. AttrVal( $name, 'gardenaAccountEmail', 'none' )
. '","password": "'
. '","password":"'
. ReadPassword( $hash, $name )
. '", "client_id":"smartgarden-jwt-client"}}';
. '","client_id":"smartgarden-jwt-client"}}';
Log3 $name, 3,
"GardenaSmartBridge ($name) - send credentials to fetch Token and locationId";
@ -1284,7 +1313,10 @@ sub createHttpValueStrings {
my ( $hash, $payload, $deviceId, $abilities, $service_id ) = @_;
my $session_id = $hash->{helper}{session_id};
my $header = "Content-Type: application/json";
my $header = 'Content-Type: application/json';
$header .= "\r\norigin: https://smart.gardena.com";
$header .= "\r\nuser-agent: Mozilla/5.0 (Macintosh; Intel Mac OS X 10_15_7) AppleWebKit/537.36 (KHTML, like Gecko) Chrome/124.0.0.0 Safari/537.36";
#my $header = "Content-Type: application/json; origin: https://smart.gardena.com";
my $uri = '';
my $method = 'POST';
$header .= "\r\nAuthorization: Bearer $session_id"
@ -1331,17 +1363,16 @@ sub createHttpValueStrings {
} # park until next schedules or override
elsif (defined($abilities)
&& defined($payload)
&& $abilities eq 'mower_timer' )
&& $abilities eq 'mower' )
{
my $valve_id;
$method = 'PUT';
$uri .=
'/devices/'
. $deviceId
. '/abilities/'
. $abilities
. '/properties/mower_timer';
. '/commands/manual_start';
}
elsif (defined($abilities)
@ -1492,7 +1523,7 @@ sub DeletePassword {
<ul>
<li>debugJSON - </li>
<li>disable - Disables the Bridge</li>
<li>interval - Interval in seconds (Default=60)</li>
<li>interval - Interval in seconds (Default=180)</li>
<li>gardenaAccountEmail - Email Adresse which was used in the GardenaAPP</li>
</ul>
</ul>
@ -1553,7 +1584,7 @@ sub DeletePassword {
<ul>
<li>debugJSON - JSON Fehlermeldungen</li>
<li>disable - Schaltet die Datenübertragung der Bridge ab</li>
<li>interval - Abfrageinterval in Sekunden (default: 60)</li>
<li>interval - Abfrageinterval in Sekunden (default: 180)</li>
<li>gardenaAccountEmail - Email Adresse, die auch in der GardenaApp verwendet wurde</li>
</ul>
</ul>
@ -1577,7 +1608,7 @@ sub DeletePassword {
],
"release_status": "stable",
"license": "GPL_2",
"version": "v2.4.7",
"version": "v2.6.3",
"author": [
"Marko Oldenburg <fhemdevelopment@cooltux.net>"
],

File diff suppressed because it is too large Load Diff

View File

@ -1,2 +1,2 @@
UPD 2022-02-01_18:41:32 49520 FHEM/73_GardenaSmartBridge.pm
UPD 2022-02-09_13:50:50 57267 FHEM/74_GardenaSmartDevice.pm
UPD 2024-05-22_18:46:22 51262 FHEM/73_GardenaSmartBridge.pm
UPD 2024-05-21_09:01:54 127762 FHEM/74_GardenaSmartDevice.pm

36
hooks/commit-msg Executable file
View File

@ -0,0 +1,36 @@
#!/bin/sh
#
# An example hook script to check the commit log message.
# Called by "git commit" with one argument, the name of the file
# that has the commit message. The hook should exit with non-zero
# status after issuing an appropriate message if it wants to stop the
# commit. The hook is allowed to edit the commit message file.
#
# To enable this hook, rename this file to "commit-msg".
# Uncomment the below to add a Signed-off-by line to the message.
# Doing this in a hook is a bad idea in general, but the prepare-commit-msg
# hook is more suited to it.
#
# SOB=$(git var GIT_AUTHOR_IDENT | sed -n 's/^\(.*>\).*$/Signed-off-by: \1/p')
# grep -qs "^$SOB" "$1" || echo "$SOB" >> "$1"
# This example catches duplicate Signed-off-by lines.
commit_msg=$(cat "${1:?Missing commit message file}")
test "" = "$(grep '^Signed-off-by: ' "$1" |
sort | uniq -c | sed -e '/^[ ]*1[ ]/d')" || {
echo >&2 Duplicate Signed-off-by lines.
exit 1
}
if ! echo "$commit_msg" | grep -Eq "^(build|chore|ci|docs|feat|feat!|fix|perf|refactor|revert|style|test)(\(.+\))?: .*$" ; then
echo "Invalid commit message"
exit 1
fi
echo "Commit message is valid!"

18
hooks/post-commit Executable file
View File

@ -0,0 +1,18 @@
#!/bin/bash
set -eu
# destination of the final changelog file
OUTPUT_FILE=CHANGELOG.md
# generate the changelog
git --no-pager log --no-merges --format="### %s%d%n>%aD%n%n>Author: %aN (%aE)%n%n>Commiter: %cN (%cE)%n%n%b%n%N%n" > $OUTPUT_FILE
# prevent recursion!
# since a 'commit --amend' will trigger the post-commit script again
# we have to check if the changelog file has changed or not
res=$(git status --porcelain | grep -c ".\$OUTPUT_FILE$")
if [ "$res" -gt 0 ]; then
git add $OUTPUT_FILE
git commit --amend
echo "Populated Changelog in $OUTPUT_FILE"
fi