Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Track Status (History) #23

Open
Stefan-83 opened this issue May 10, 2020 · 1 comment
Open

Track Status (History) #23

Stefan-83 opened this issue May 10, 2020 · 1 comment

Comments

@Stefan-83
Copy link

Hi,
my homebrigde gets the status of my rainsensor by using the HTTP-Output, when using a http-request.
The status is "sn2" (0 or 1)
It works great with that configuration:

        {
            "accessory": "HttpAdvancedAccessory",
            "service": "ContactSensor",
            "name": "Rain Sensor",
            "polling": "true",
            "forceRefreshDelay": 5,
            "debug": true,
            "optionCharacteristic": [],
            "urls": {
                "getContactSensorState": {
                    "url": "http://192.168.178.98/jc?pw=passwort",
                    "mappers": [
                        {
                            "type": "jpath",
                            "parameters": {
                                "jpath": "$.sn2",
                                "index": "0"
                            }
                        },
                        {
                            "type": "static",
                            "parameters": {
                                "mapping": {
                                    "ALARM": "1",
                                    "NORMAL": "0"
                                }
                            }
                        }
                    ]
                }
            }
        }

Now I want to track the history of the status for the hole day/week/month.

Is it possible after the status was queried, a script writes the current status into a database?
(I currently have openhab2 and iobroker running)

Any ideas? Thanks :)

@staromeste
Copy link
Owner

staromeste commented May 10, 2020 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants