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

Delivery of the current activity? #22

Open
GerdBlomb opened this issue Apr 5, 2021 · 5 comments
Open

Delivery of the current activity? #22

GerdBlomb opened this issue Apr 5, 2021 · 5 comments

Comments

@GerdBlomb
Copy link

Hi!

As far as i can see, i can only get the new / upcoming activity of the hub. But i would like to see from which activity (even Activity "off" / "-1") the hub changes to the new activity.

Is this somehow possible with the current version? If not maybe it is possible to extent the msg object to have "current activity" and "new activity" in it?

Best regards!

@GerdBlomb GerdBlomb changed the title Delivery of the previous activity? Delivery of the current activity? Apr 5, 2021
@lopelex
Copy link
Owner

lopelex commented Apr 8, 2021

@GerdBlomb
Copy link
Author

I know. But why? If Harmony can deliverys this and you can trust on it even after days or weeks or beetween shutdowns?

Here is an example from a Home Assistant node (which i can not make use of) what is possible:
bild_5

@lopelex
Copy link
Owner

lopelex commented Apr 9, 2021

One possibility would be to write the context in a file.
https://nodered.org/docs/api/context/store/localfilesystem

@lopelex
Copy link
Owner

lopelex commented Apr 9, 2021

Bildschirmfoto 2021-04-09 um 18 51 22

I think everything you need is already there, right?

@GerdBlomb
Copy link
Author

Hi lopelex,

thanks for you additional hints. I think one can handle it that way. My fear is that over some days of not using the systems may divide each other. Thinking about a reboot or downtime of the node red server where in the meantime state changes on the harmony hub.

Therefore i think it will be best to trieve the actual information out of the hub. As far as i understood it is there and it is possible to query it when things change there.

Maybe in a later version of the nodes ;)

Anyway thanks!

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