Hy, I’m new to scenario world: I always use them by defining as series of actions started at a time or on events, I have no physical buttons associated to my MHS1 scenarios. Is it possible to start them in some way form sitemap if there is not a button to define as virtual?
I would like a virtual button associated to a named scenario in mhs1 to start many actions in sequence with timed pauses between every action.
so if i understand correct you have configured scenarios on your mhs1 that you just want to start with a virtual button?
difficult to give an example because i configure all text-based and my rules are written in jython what is is used by very less people. but you just need to configure your cens as described by massi in the first post here.
in items you just need to configure a virtual item that you can put in your sitemap as a button to start the cen:
Switch myVirtualSwitch "name of the switch"
then, eg in rules, you can add the rule to manage the virtual button that starts your cenario.
hi @rubenfuser : for WHO=0 scenarios: actually did not find time yet to add this support, and actually you are the only user that requested that. Maybe investing some good coffee in this case could help ![]()
@fmalfatto did you look at the examples in the REAME ?
- thing:
bus_cenplus_scenario_control LR_CENplus_scenario - item:
String iCENPlusProxyItem "CEN+ Proxy Item" - sitemap:
Switch item=iCENPlusProxyItem label="My CEN+ scenario" - rule:
rule "CEN+ virtual press from OH button"
Yes, I followed the valuable samples. The only thing I cannot understand is how to know the names of stored scenarios I have in MHS1 The rule wants:
val actions = getActions(“openwebnet”,“openwebnet:bus_cenplus_scenario_control:mhs1:212”)
actions.virtualPress(“SHORT_PRESS”, 5)
But I have no button number (The “5” in the example).to give.
The problem came from new MHS1 firmware that took the old app out of games. The new Home+Project and Home+Control apps do not work at all and MyHomeUp does no more connect to mhs1, so I cannot manage my scenarios. I’m trying to call them with virtual buttons in sitemap, but I have no way to know what are the stored scenarios and their names.
TY in advance for any advice
perhaps try to use the openwebnet client software, there you can log the commands and see what is sent.
for example an cenplus:
*25*21#2*231##
21 means short_press
2 means button nr 2
231 means cenplus 31
or for cen:
*15*06#1*05#4#01##
06 means button nr 6
#1 means release after short press
05 means cen-nr 5
Aren’t configured scenarios available in the MHS1 web interface?
I never have seen them. MHS1 has no web interface at all. It had one limited web access on port 3443 for backup/restore of configuration, but it disappeared after this terrefic firmware update of last month. Actually there is no way to communicate to MHS1 via official apps. The only hope I have is to continue to manage it with Openhab.
Cfr: MyHomeServer1: Upgrade from MyHome_Up to new Home+Control app - Works with Legrand
i think you missunderstood. you dont need to send my examples. you only need the own client to watch the bus. send a cen command (that you need to know the button nr) from your device. watch the own client for a command starting with *25* (for a cenplus, as in my first example) or starting with *15* (for a cen, as in my second example). then you should see the button nr in that line how i explained.
Ty Stephan, but if I could send the cen command, I know I could test it. But thanks to bticino corrupted apps, I dont’t have any way to activate my scenarios since 15 days! That’ why I’m trying to use OH to call them.
i dont know the mhs1, but i have all my scenarios written in openhab, earlier in dsl rules, now switched to jython. this is much more powerful than at the beginning when i had configured scenarios in the bticino mh200n.
if you are able to create a rule with your desired scenario you easily can configure a time when it should be activated, you even dont need a cen-command then. additional control can be done in the oh-app (on mobile of webbrowser on pc)
You are right, I tried several times to afford OH rules & scripts, but they are outside my knowledge. I was used to write programs in my youths (about 50 years ago, but I never could learn object oriented languages. I’ll try again, but in my old perspective of ancient system programmer I cannot think about rewriting a whole set of scripts only because someone decided to change an application without giving the choose odf remaining on old version, or that someone sells an object where you cannot list the things you have defined.
Non sapevo di questo aiuto che ti potevo dare! Mi sembra davvero il minimo per tutto quello che hai realizzato per la community e di conseguenza per me. e apprezzo moltissimo il tuo lavoro!
prenditi un buon caffè anche per me! e se hai tempo per riaggiungere il WHO=0 te ne sarei ancora + grato! ![]()
thanks for all your support Massi! me and all the community appreciate the time you spent for us about this project! thanks a lot!
hi all, please I need support, I can not implement the CEN commands,
I’m sure I’m doing something wrong…
I am using a 3477 interface configured as A=8 PL1=5 PL2=5 M=CEN SPE=blank,
I see the frames of the bus go by and the LED lights up when the buttons are pressed…
I configured it like this in the .thing file inside BRIDGE :
bus_cen_scenario_control T_Level_Fertilizer [where=“85”, buttons=“0, 1”]*
I configured these two Items :
String Irriga_level_LOW “LOW Fertilizer Level” (GR_Irrigation) {autoupdate=“true”, channel=“openwebnet:bus_cen_scenario_control:BT_F454:T_Fertilizer_Level:button#0”}
String Irriga_level_HIGH “Fertilizer Level HIGH” (GR_Irrigation) {autoupdate=“true”, channel=“openwebnet:bus_cen_scenario_control:BT_F454:T_Fertilizer_Level:button#1”}
I configured this rules :
rule “Interface TEST notification 3477”
when
Channel “openwebnet:bus_cen_scenario_control:BT_F454:T_Level_Fertilizer:button#0” triggered START_PRESSURE
or
Channel “openwebnet:bus_cen_scenario_control:BT_F454:T_Level_Fertilizer:button#1” triggered START_PRESSURE
then
sendNotification(“tebraxin123@gmail.com”, “TEST interface 3477”) // For notifications
end
OF COURSE IT DOESN’T WORK
where am i wrong?? syntax? other??
thanks a lot to whoever can help me
English lease, this is an international community!
i think you cannot define an item for a cen channel. i would remove the items. for receiving cen commands no item necessary, if you want to send a cen command from rules dsl you have to write something like this in the rules-file:
val cenActions = getActions("openwebnet","openwebnet:bus_cen_scenario_control:bticino:Cen_MyCommand")
cenActions.virtualPress("START_PRESS", 1) // send "START_PRESS" to button 1
then in your rules dsl you triggered START_PRESSURE but i think it has to be START_PRESS
also i did not have an or between two channel conditions in the when area, but not quite sure as i dont use dsl since a long time and just looked into an old file from me.
yes, as @bastler mentioned, to receive events in a script you do not need items.
Read the documentation in the README and look at the related example that I also copy here:
rule "CEN dimmer increase"
// A "start press" event on CEN where=51, button=4 will increase dimmer%
when
Channel "openwebnet:bus_cen_scenario_control:mybridge:51:button#4" triggered START_PRESS
then
sendCommand(iLR_dimmer, INCREASE)
end
Thanks for the replies.
Based on the documentation, however, I see that an object is declared as a THING and also in the .items file there is a STRING type declaration but for CEN+ and actually not for the CEN, are these two things correct?
I see the frames passing on the myhome BUS but NOT in the LogViewer…
The contacts interface is configured as I indicated above, and this is the now code of the rule:
rule “Interface TEST notification 3477”
when
Channel “openwebnet:bus_cen_scenario_control:BT_F454:85:button#0” triggered START_PRESS
or
Channel “openwebnet:bus_cen_scenario_control:BT_F454:85:button#1” triggered START_PRESS
then
sendNotification(“tebraxin123@gmail.com”, “Interface TEST 3477”) // For notifications via app and openhabcloud
end
but this doesn’t work ![]()
Thanks for the support
Can you copy here the frames that pass on the BUS when you press the buttons and that you want your rule react on?
Also: what the contact interface 3477 you mention has to do with CEN scenarios?
Maybe you are confusing the contact interface (thing: bus_dry_contact_ir) with the CEN scenario control modules like NT4680 (thing: bus_cen_scenario_control)?
Ok I now read that 3477 can be configured to activate CEN/CEN+ scenarios, so basically it can act as a CEN Scenario Control module like NT4680, but I’m not sure the way you should use it is correct: let’s the frames…
