Forum Replies Created

Viewing 8 posts - 1 through 8 (of 8 total)
  • Posted in:
  • 10. Dezember 2020 at 0:50 #50461

    after edit my post was delete. Can you find it?

    • This reply was modified 1 year, 5 months ago by  remyb.
    10. Dezember 2020 at 0:39 #50457


    I received my RPI 4B and i installed the new M2P 1.53.
    After that i did all RPI update.

    it seem that work with M2P 1.53 and FHEM 6.0.23320 with the file here :
    This file is uptaded from 2019-04-15 while the file installed with FHEM is older.


    when i reboot M2P FHEM didn’t work anymore (service is lauch but the web interface don’t load).
    To fix this
    -i had to click on „kill“ FHEM process. The process failed to stop but FHEM work again.
    -I had to comment this 2 lines in fhem.
    `#define initialUsbCheck notify global:INITIALIZED usb create
    #setuuid initialUsbCheck xxx`

    Now it’s work well for me.

    If somebody need this, i use fhem to activate a relay and a amplifier power supply if one of my squeezeboxplayer (multi usb DAC with multisqueeze plugin) play music:

    define squeezebox_Server SB_SERVER
    define SB_PLAYER_b825ebc171f0 SB_PLAYER b8:25:eb:c1:71:f0

    (auto detected by when SB_SERVER is define with the previous line)

    define etat_playstatus dummy 

    (a variable for save the state if one player is running)

    define GPIO17 RPI_GPIO 17
    attr GPIO17 direction output
    define GPIO17 RPI_GPIO 18
    attr GPIO18 direction output
    define SB_PLAYER_playStatus notify SB_PLAYER_b823ebc171f0:.*|SB_PLAYER_b824ebc171f0:.*|SB_PLAYER_b825ebc171f0:.*|SB_PLAYER_b826ebc171f0:.*|SB_PLAYER_b827ebc171f0:.*|SB_PLAYER_b828ebc171f0:.*|SB_PLAYER_b829ebc171f0:.* {\
    if (\
    ReadingsVal ("SB_PLAYER_b823ebc171f0", "playStatus", "") eq "playing" ||\
    ReadingsVal ("SB_PLAYER_b824ebc171f0", "playStatus", "") eq "playing" ||\
    ReadingsVal ("SB_PLAYER_b825ebc171f0", "playStatus", "") eq "playing" ||\
    ReadingsVal ("SB_PLAYER_b826ebc171f0", "playStatus", "") eq "playing" ||\
    ReadingsVal ("SB_PLAYER_b827ebc171f0", "playStatus", "") eq "playing" ||\
    ReadingsVal ("SB_PLAYER_b828ebc171f0", "playStatus", "") eq "playing" ||\
    ReadingsVal ("SB_PLAYER_b829ebc171f0", "playStatus", "") eq "playing"\
    	fhem ("set etat_playstatus on");;\
           fhem ("set etat_playstatus off");;\

    (catch notification from squeezebox player and look the state of „playStatus“. If one of them is „playing“ etat_playstatus is set to „on“)

    define ETAT_AMPLIFICATEUR DOIF ([etat_playstatus] eq "on")\
    (set GPIO17 off)\
    (set GPIO18 off)\
    (set GPIO17 on)\
    (set GPIO18 on)
    attr ETAT_AMPLIFICATEUR wait 0,0:30,0

    (look for „etat_playstatus“ state. If „etat_playstatus“ is on then GPIO turn off and switch on the amplifier power supply (reverse logic pin). If „etat_playstatus“ is off then GPIO turn on and switch off the power supply after 30s).

    It’s work very well!

    • This reply was modified 1 year, 5 months ago by  remyb.
    • This reply was modified 1 year, 5 months ago by  remyb.
    • This reply was modified 1 year, 5 months ago by  remyb.
    • This reply was modified 1 year, 5 months ago by  remyb.
    6. Dezember 2020 at 20:33 #50440

    Hi MarioM,

    Thx for your answer. I will receive a PI4 this week.
    I will test SB FHEM module on the new buster image.

    19. November 2020 at 22:29 #50286

    Hi, did you manage to make it work with the latest version of M2P?

    I plan to modify and update my installation and would like to upgrade to the latest version.

    this is very useful to activate the start of my power supply when LMS play.


    12. Mai 2020 at 23:13 #48776

    Hi MarioM,

    1) Yes i have to copy the two filse from opt/fhem/contrib to opt/fhem/FHEM so that they are loaded. Otherwise i can’t use the commands DEFINE SB_SERVER in FHEM (

    2) Yes, FHEM work before copying the files.

    21. März 2018 at 14:49 #34605

    I found the problem but i don’t know how to fix it.

    When i use one RPI with multisqueeze the Audiophonics USB DAC works well without delay.
    When i plug a second raspberry with multisqueeze and others DAC (other brand, cheap dac for computer) I have a delay.

    I don’t understand why another raspberry on the network cause this delay.

    If i use only cheap DAC on the two RPI i don’t have delay.

    So i send the Audiophonics USB back.

    19. März 2018 at 17:33 #34539


    With LMS you can synchronise 2 players. Is that what you are looking for?

    I installed spotty recently on my LMS server (on Synology NAS) and i didn’t have any problem.
    Can you tell us where the installation doesn’t works?

    17. März 2018 at 16:12 #34497

    ok i find a solution with option -m <mac address>


Viewing 8 posts - 1 through 8 (of 8 total)