outandwild Posted November 12, 2023 Share Posted November 12, 2023 p.s. it would have been great if you had "homeassistant" sub form or even add some HA configuration code snippets within shelly docs. Hey folks, I'm dealing with a bit of a head-scratcher here with my Shelly 2.5 devices. They were all good until the recent HA updates and some firmware tweaks last year. Now, I'm facing this weird issue where the shellies respond to commands just fine, but their status updates are MIA. I can still boss them around directly through MQTT, but HA seems clueless about their status, showing them as perpetually "unavailable." I did some digging and noticed that the /info and /announce topics only pop up messages right before and after a reboot. Tweaking the mqtt_update_period didn't make any difference. Here's a glimpse of what the MQTT traffic looks like around a reboot. Notice how the announce message is a no-show except around these times. Also, here are the settings I'm using.  $ mosquitto_sub -h 10.0.0.123 -p 1883 -t âshellies/shellyswitch25-aaaaaa/#â -v -u âuserâ -P âpassâ shellies/shellyswitch25-aaaaaa/online true shellies/shellyswitch25-aaaaaa/announce { âidâ: âshellyswitch25-aaaaaaâ, âmodelâ: âSHSW-25â, âmacâ: â4FC4FFaaaaaaâ, âipâ: â10.0.0.123â, ânew_fwâ: false, âfw_verâ: â20231107-163214/v1.14.1-rc1-g0617c15â, âmodeâ: ârollerâ } shellies/shellyswitch25-aaaaaa/info { âwifi_staâ: { âconnectedâ: true, âssidâ: âssidâ, âipâ: â10.0.0.123â, ârssiâ: -58 }, âcloudâ: { âenabledâ: false, âconnectedâ: false }, âmqttâ: { âconnectedâ: true }, âtimeâ: ââ, âunixtimeâ: 0, âserialâ: 1, âhas_updateâ: false, âmacâ: â2CF432aaaaaaâ, âcfg_changed_cntâ: 0, âactions_statsâ: { âskippedâ: 0 }, ârollersâ: [ { âstateâ: âstopâ, âsourceâ: âinputâ, âpowerâ: 0.00, âis_validâ: true, âsafety_switchâ: false, âovertemperatureâ: false, âstop_reasonâ: ânormalâ, âlast_directionâ: âcloseâ, âcurrent_posâ: 0, âcalibratingâ: false, âpositioningâ: true } ], âmetersâ: [ { âpowerâ: 0.00, âoverpowerâ: 0.00, âis_validâ: true, âtimestampâ: 0, âcountersâ: [ 0.000, 0.000, 0.000 ], âtotalâ: 0 }, { âpowerâ: 0.00, âoverpowerâ: 0.00, âis_validâ: true, âtimestampâ: 0, âcountersâ: [ 0.000, 0.000, 0.000 ], âtotalâ: 0 } ], âinputsâ: [ { âinputâ: 1, âeventâ: ââ, âevent_cntâ: 0 }, { âinputâ: 1, âeventâ: ââ, âevent_cntâ: 0 } ], âtemperatureâ: 41.31, âovertemperatureâ: false, âtmpâ: { âtCâ: 41.31, âtFâ: 106.36, âis_validâ: true }, âtemperature_statusâ: âNormalâ, âupdateâ: { âstatusâ: âunknownâ, âhas_updateâ: false, ânew_versionâ: ââ, âold_versionâ: â20231107-163214/v1.14.1-rc1-g0617c15â }, âram_totalâ: 50728, âram_freeâ: 37516, âfs_sizeâ: 233681, âfs_freeâ: 144325, âvoltageâ: 239.76, âuptimeâ: 1 } shellies/shellyswitch25-aaaaaa/roller/0 stop shellies/shellyswitch25-aaaaaa/roller/0/pos 0 shellies/shellyswitch25-aaaaaa/roller/0/stop_reason normal shellies/shellyswitch25-aaaaaa/roller/0/power 0.00 shellies/shellyswitch25-aaaaaa/relay/power 0.00 shellies/shellyswitch25-aaaaaa/roller/0/energy 0 shellies/shellyswitch25-aaaaaa/relay/energy 0 shellies/shellyswitch25-aaaaaa/input/1 1 shellies/shellyswitch25-aaaaaa/input/0 1 shellies/shellyswitch25-aaaaaa/temperature 38.45 shellies/shellyswitch25-aaaaaa/temperature_f 101.21 shellies/shellyswitch25-aaaaaa/overtemperature 0 shellies/shellyswitch25-aaaaaa/temperature_status Normal shellies/shellyswitch25-aaaaaa/voltage 239.76 shellies/shellyswitch25-aaaaaa/announce { âidâ: âshellyswitch25-aaaaaaâ, âmodelâ: âSHSW-25â, âmacâ: â2CF432aaaaaaâ, âipâ: â10.0.0.123â, ânew_fwâ: true, âfw_verâ: â20231107-163214/v1.14.1â, âmodeâ: ârollerâ } shellies/shellyswitch25-aaaaaa/roller/0 stop shellies/shellyswitch25-aaaaaa/roller/0/pos 0 shellies/shellyswitch25-aaaaaa/roller/0/stop_reason normal shellies/shellyswitch25-aaaaaa/roller/0/power 0.00 shellies/shellyswitch25-aaaaaa/relay/power 0.00 shellies/shellyswitch25-aaaaaa/roller/0/energy 0 shellies/shellyswitch25-aaaaaa/relay/energy 0 shellies/shellyswitch25-aaaaaa/input/1 1 shellies/shellyswitch25-aaaaaa/input/0 1 shellies/shellyswitch25-aaaaaa/temperature 38.45 shellies/shellyswitch25-aaaaaa/temperature_f 101.21 shellies/shellyswitch25-aaaaaa/overtemperature 0 shellies/shellyswitch25-aaaaaa/temperature_status Normal shellies/shellyswitch25-aaaaaa/voltage 230.76 I've been trying to set up a cover in HA, but it's just showing up as an unavailable button. Here's the device config and HA config I'm using for that mqtt: cover: name: âSome Coverâ unique_id: some_cover state_topic: âshellies/shellyswitch25-aaaaaa/roller/0â command_topic: âshellies/shellyswitch25-aaaaaa/roller/0/commandâ position_topic: âshellies/shellyswitch25-aaaaaa/roller/0/posâ set_position_topic: âshellies/shellyswitch25-aaaaaa/roller/0/command/posâ availability: - topic: âshellies/shellyswitch25-aaaaaa/announceâ payload_available: âtrueâ payload_not_available: âfalseâ qos: 2 retain: true payload_open: âopenâ payload_close: âcloseâ payload_stop: âstopâ position_open: 0 position_closed: 100 optimistic: false  {âdeviceâ:{âtypeâ:âSHSW-25â,âmacâ:â2CF432686E0Eâ,âhostnameâ:âshellyswitch25-686E0Eâ,ânum_outputsâ:2,ânum_metersâ:2,ânum_rollersâ:1,âmodeâ:ârollerâ},âwifi_apâ:{âenabledâ:false,âssidâ:âshellyswitch25-AAFFCCâ,âkeyâ:ââ},âwifi_staâ:{âenabledâ:true,âssidâ:âbusillisâ,âipv4_methodâ:âstaticâ,âipâ:â192.168.1.123â,âgwâ:â192.168.1.1â,âmaskâ:â255.255.255.0â,âdnsâ:â192.168.1.1â},âwifi_sta1â:{âenabledâ:false,âssidâ:null,âipv4_methodâ:âdhcpâ,âipâ:null,âgwâ:null,âmaskâ:null,âdnsâ:null},âap_roamingâ:{âenabledâ:false,âthresholdâ:-70},âmqttâ:{âenableâ:true,âserverâ:â192.168.1.321:1883â,âuserâ:âspaceâ,âidâ:âshellyswitch25-AAFFCCâ,âreconnect_timeout_maxâ:60.000000,âreconnect_timeout_minâ:2.000000,âclean_sessionâ:true,âkeep_aliveâ:60,âmax_qosâ:0,âretainâ:false,âupdate_periodâ:30},âcoiotâ:{âenabledâ:true,âupdate_periodâ:15,âpeerâ:â192.168.1.321:5683â},âsntpâ:{âserverâ:âtime.google.comâ,âenabledâ:true},âloginâ:{âenabledâ:true,âunprotectedâ:false,âusernameâ:âspaceâ},âpin_codeâ:ââ,ânameâ:null,âfwâ:â20231107-163214/v1.14.1-rc1-g0617c15â,âfactory_reset_from_switchâ:true,âpon_wifi_resetâ:false,âdiscoverableâ:true,âbuild_infoâ:{âbuild_idâ:â20231107-163214/v1.14.1-rc1-g0617c15â,âbuild_timestampâ:â2023-11-07T16:32:14Zâ,âbuild_versionâ:â1.0â},âcloudâ:{âenabledâ:false,âconnectedâ:false},âtimezoneâ:âEurope/Zagrebâ,âlatâ:42.845333,âlngâ:11.359555,âtzautodetectâ:true,âtz_utc_offsetâ:3600,âtz_dstâ:true,âtz_dst_autoâ:true,âtimeâ:â19:39â,âunixtimeâ:169444555,âled_status_disableâ:false,âdebug_enableâ:false,âallow_cross_originâ:true,âactionsâ:{âactiveâ:false,ânamesâ:[âbtn_on_urlâ,âbtn_off_urlâ,âlongpush_urlâ,âshortpush_urlâ,âout_on_urlâ,âout_off_urlâ,âbtn_on_urlâ,âbtn_off_urlâ,âlongpush_urlâ,âshortpush_urlâ,âout_on_urlâ,âout_off_urlâ,âroller_open_urlâ,âroller_close_urlâ,âroller_stop_urlâ]},âhwinfoâ:{âhw_revisionâ:âprod-2019-03â,âbatch_idâ:1},âmodeâ:ârollerâ,âmax_powerâ:1840,âlongpush_timeâ:800,ârelaysâ:[{ânameâ:null,âappliance_typeâ:âGeneralâ,âisonâ:false,âhas_timerâ:false,âdefault_stateâ:âoffâ,âbtn_typeâ:âtoggleâ,âbtn_reverseâ:0,âauto_onâ:0.00,âauto_offâ:0.00,âmax_powerâ:0,âscheduleâ:false,âschedule_rulesâ:},{ânameâ:null,âappliance_typeâ:âGeneralâ,âisonâ:false,âhas_timerâ:false,âdefault_stateâ:âoffâ,âbtn_typeâ:âtoggleâ,âbtn_reverseâ:0,âauto_onâ:0.00,âauto_offâ:0.00,âmax_powerâ:0,âscheduleâ:false,âschedule_rulesâ:}],ârollersâ:[{âmaxtimeâ:20.00,âmaxtime_openâ:37.00,âmaxtime_closeâ:37.00,âdefault_stateâ:âstopâ,âswapâ:true,âswap_inputsâ:false,âinput_modeâ:âopencloseâ,âbutton_typeâ:âtoggleâ,âbtn_reverseâ:1,âstateâ:âstopâ,âpowerâ:0.00,âis_validâ:true,âsafety_switchâ:false,âscheduleâ:false,âschedule_rulesâ:,âobstacle_modeâ:âdisabledâ,âobstacle_actionâ:âstopâ,âobstacle_powerâ:200,âobstacle_delayâ:1,âends_delayâ:2500,âsafety_modeâ:âwhile_openingâ,âsafety_actionâ:âstopâ,âsafety_allowed_on_triggerâ:ânoneâ,âoff_powerâ:2,âpositioningâ:true}],âfavorites_enabledâ:true,âfavoritesâ:[{ânameâ:âPosition 1â,âposâ:0},{ânameâ:âPosition 2â,âposâ:0},{ânameâ:âPosition 3â,âposâ:0},{ânameâ:âPosition 4â,âposâ:0}],âeco_mode_enabledâ:false}    Any advice? Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.