Search found 177 matches

by Medy
Sun Sep 20, 2020 11:31 am
Forum: Coding Corner
Topic: How to acces action data from another action
Replies: 14
Views: 1214

Re: How to acces action data from another action

Perfect! :D I prefer json too. And it's pretty easy indeed. First "import json" in your plugin. When you want to dump/ parse your json object, you just need to open a file in Python for reading or writing and use json.load() and json.dump() to convert your object to or from json. Check this out: ht...
by Medy
Sun Sep 20, 2020 10:13 am
Forum: Coding Corner
Topic: How to acces action data from another action
Replies: 14
Views: 1214

Re: How to acces action data from another action

Hi Medy, The normal way would be to indeed combine the learn and send action into one. However, I see your use case now and it does make sense to store this data in a place both actions can access. You always have access to the EG.plugin namespace, everywhere inside your plugin. - in actions you wo...
by Medy
Sun Sep 20, 2020 9:03 am
Forum: Coding Corner
Topic: How to acces action data from another action
Replies: 14
Views: 1214

Re: How to acces action data from another action

Usually you would store the shared data in self.plugin during the runtime and then access it from any action. I also wrote kgschlosser this I have 2 actions LearnSignal SendSignal so when I learn a Signal in "LearnSignal" then save and restart eventghost --> I cant load the data from "LearnSignal" ...
by Medy
Sat Sep 19, 2020 9:38 pm
Forum: General Support
Topic: best EG supported device for controlling TV + receiver?
Replies: 15
Views: 1463

Re: best EG supported device for controlling TV + receiver?

I don't want to use a pi, some other Linux box or HA\some other software. Already have my windows server going with absolutely everything I need and EG running so much automation. Installing HA and having yet another platform just to send a few IR codes out seems like a whole waste of time. If you ...
by Medy
Sat Sep 19, 2020 6:42 pm
Forum: Coding Corner
Topic: How to acces action data from another action
Replies: 14
Views: 1214

Re: How to acces action data from another action

Hi Medy, I'm not 100% sure if it's impossible, but it surely doesn't make much sense. You can't make sure the two actions are always both configured in the user's configuration. Why do you want to do that? Usually you would store the shared data in self.plugin during the runtime and then access it ...
by Medy
Sat Sep 19, 2020 1:59 pm
Forum: Coding Corner
Topic: How to acces action data from another action
Replies: 14
Views: 1214

How to acces action data from another action

So as far as ive learned from the Writing plugin documentation I can save and acces plugin data like this 1. Set Result in Configure 2. Acces in __start__ But what if I want to save data inside a aciton(Eg.Actionbase) ACTION-A def myactionA(Eg.ActionBase) def Configure(self , value): while panel.Aff...
by Medy
Thu Sep 17, 2020 5:20 pm
Forum: General Support
Topic: best EG supported device for controlling TV + receiver?
Replies: 15
Views: 1463

Re: best EG supported device for controlling TV + receiver?

Ok, I would keep things to save persistently to a minimum. For example you can run a device discovery on plugin startup and only store identifiers to the devices in the configuration. I don't think it's even possible to store a complete object, limit it to strings, lists and dictionaries. Let me kn...
by Medy
Thu Sep 17, 2020 6:24 am
Forum: General Support
Topic: best EG supported device for controlling TV + receiver?
Replies: 15
Views: 1463

Re: best EG supported device for controlling TV + receiver?

What kind of data do you want to save? Settings you set in the plugin configuration or actions are saved automatically in your EG config. Greetings The data from the librarie''s discoverDevice() method contains the device info. Saving that Data creates a pickling error in Eventghost. It contains so...
by Medy
Tue Sep 15, 2020 6:55 pm
Forum: General Support
Topic: best EG supported device for controlling TV + receiver?
Replies: 15
Views: 1463

Re: best EG supported device for controlling TV + receiver?

Alright looking good ... I have both IR & RF (LEARN and SEND) working on the rmpro+... in EVENTGHOST ! initally RF didnt work ... but luckely there was an open isssue already suggesting the fix :D https://github.com/mjg59/python-broadlink/issues/397 Tommorrow I will look into savign the IR & RF Pack...
by Medy
Mon Sep 14, 2020 9:22 pm
Forum: General Support
Topic: best EG supported device for controlling TV + receiver?
Replies: 15
Views: 1463

Re: best EG supported device for controlling TV + receiver?

Alright .. figured out the issue ...seems there is still hope ;) .... continuing
by Medy
Sat Sep 12, 2020 2:16 pm
Forum: Anything Goes... Almost Anything
Topic: Leveling up Python Knowledge / Exploring Tech
Replies: 1
Views: 281

Leveling up Python Knowledge / Exploring Tech

So I would like to ask you for some advice to get more comfortable / acquainted with python and Eventghost. Meaning I would like to bring myself to engage more with plugins and intermediate concepts. I mean maybe you have some ideas what would be worth looking into in regards to python programming ....
by Medy
Sat Sep 12, 2020 9:31 am
Forum: General Support
Topic: best EG supported device for controlling TV + receiver?
Replies: 15
Views: 1463

Re: best EG supported device for controlling TV + receiver?

I don't want to use a pi, some other Linux box or HA\some other software. Already have my windows server going with absolutely everything I need and EG running so much automation. Installing HA and having yet another platform just to send a few IR codes out seems like a whole waste of time. If you ...
by Medy
Fri Sep 11, 2020 7:25 pm
Forum: General Support
Topic: best EG supported device for controlling TV + receiver?
Replies: 15
Views: 1463

Re: best EG supported device for controlling TV + receiver?

I don't want to use a pi, some other Linux box or HA\some other software. Already have my windows server going with absolutely everything I need and EG running so much automation. Installing HA and having yet another platform just to send a few IR codes out seems like a whole waste of time. If you ...
by Medy
Thu Sep 10, 2020 3:18 pm
Forum: General Support
Topic: best EG supported device for controlling TV + receiver?
Replies: 15
Views: 1463

Re: best EG supported device for controlling TV + receiver?

I've been using harmony hub forever with IFTTT but recently they have decided to cut off the service and make it a paid subscription model. So I want to move my TV and Receiver onto eventghost. Now since EG doesn't have a harmony plug in and im told there never will be one from another thread, I wa...
by Medy
Thu Sep 10, 2020 6:32 am
Forum: General Support
Topic: best EG supported device for controlling TV + receiver?
Replies: 15
Views: 1463

Re: best EG supported device for controlling TV + receiver?

Atm Im not aware of a IR plugin for EG with that functionality... I went with broadlink rm pro ... you can find plugins for smart home software like home assistant or iobroker ... The stuff is best put on a raspeberry pi ... but it also runs on windows ... so you can test what you like best before b...