Closed Roadyweb closed 10 years ago
Oh, Humidity ist jetzt um 10 zu klein:
SHC_TEMP_20 http://butler:8083/fhem?detail=SHC_TEMP_20
T: 22.73 H: 4.78 B:1
(richtig wäre 47,8%, was auch in der Message steht).
Gruß, Uwe.
Am 14.04.2014 20:52, schrieb rr2000:
Bei mir hat alles funktioniert, schau's dir bitte mal an.
- Verwende SHC_parser.pm um Nachrichten zu parsen und zu erzeugen
- Fehlermeldungen werden jetzt besser sortiert (siehe letzter commit)
* TODO * $parser->initPacket("PowerSwitch", "SwitchState", "Set"); $parser->setField("PowerSwitch", "SwitchState", "TimeoutSec", 0); $parser->setField("PowerSwitch", "SwitchState", "On", 0); $parser->getSendString( $hash->{addr}, $hash->{aeskey} );
erzeugt zu viele Nullen: 2014.04.14 17:57:11 3: SHC_TEMP_40: Sending s0001002814010000 2014.04.14 17:57:11 3: SHC_TEMP_40: Sending s0001002814010000000000
You can merge this Pull Request by running
git pull https://github.com/Roadyweb/smarthomatic xml_parser_for_fhem
Or view, comment on, or merge it at:
https://github.com/breaker27/smarthomatic/pull/61
Commit Summary
- open packet_layout.xml in the FHEM subfolder, not in the root folder
- add function to return packet counter
- use SHC_parser.pm to parse incoming messages
- fix rebase manual merge typo
- use SHC_parser.pm to create outgoing messages
- AES key is already implemented in fhem
- refactor: align variable names to access functions/field names
- implement error handling in SHC_parser.pm and use it
improved message handling
File Changes
- M host_software/fhem/37_SHC.pm https://github.com/breaker27/smarthomatic/pull/61/files#diff-0 (34)
- M host_software/fhem/37_SHC_TEMP.pm https://github.com/breaker27/smarthomatic/pull/61/files#diff-1 (195)
M host_software/fhem/SHC_parser.pm https://github.com/breaker27/smarthomatic/pull/61/files#diff-2 (17)
Patch Links:
- https://github.com/breaker27/smarthomatic/pull/61.patch
- https://github.com/breaker27/smarthomatic/pull/61.diff
— Reply to this email directly or view it on GitHub https://github.com/breaker27/smarthomatic/pull/61.
Bei mir hat alles funktioniert, schau's dir bitte mal an.
* TODO * $parser->initPacket("PowerSwitch", "SwitchState", "Set"); $parser->setField("PowerSwitch", "SwitchState", "TimeoutSec", 0); $parser->setField("PowerSwitch", "SwitchState", "On", 0); $parser->getSendString( $hash->{addr}, $hash->{aeskey} );
erzeugt zu viele Nullen: 2014.04.14 17:57:11 3: SHC_TEMP_40: Sending s0001002814010000 2014.04.14 17:57:11 3: SHC_TEMP_40: Sending s0001002814010000000000